pub struct ObsBootstrapperOptions { /* private fields */ }
Implementations§
Source§impl ObsBootstrapperOptions
impl ObsBootstrapperOptions
pub fn new() -> Self
pub fn set_repository(self, repository: &str) -> Self
pub fn get_repository(&self) -> &str
Sourcepub fn set_update(self, update: bool) -> Self
pub fn set_update(self, update: bool) -> Self
true
if the updater should check for updates and download them if available.
false
if the updater should not check for updates and only install OBS if required.
Sourcepub fn set_no_restart(self) -> Self
pub fn set_no_restart(self) -> Self
Disables the automatic restart of the application after the update is applied.
Trait Implementations§
Source§impl Clone for ObsBootstrapperOptions
impl Clone for ObsBootstrapperOptions
Source§fn clone(&self) -> ObsBootstrapperOptions
fn clone(&self) -> ObsBootstrapperOptions
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ObsBootstrapperOptions
impl Debug for ObsBootstrapperOptions
Auto Trait Implementations§
impl Freeze for ObsBootstrapperOptions
impl RefUnwindSafe for ObsBootstrapperOptions
impl Send for ObsBootstrapperOptions
impl Sync for ObsBootstrapperOptions
impl Unpin for ObsBootstrapperOptions
impl UnwindSafe for ObsBootstrapperOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more