pub struct ObsBootstrapperOptions { /* private fields */ }Implementations§
Source§impl ObsBootstrapperOptions
impl ObsBootstrapperOptions
pub fn new() -> Self
Sourcepub fn set_repository(self, repository: &str) -> Self
pub fn set_repository(self, repository: &str) -> Self
Selects the GitHub repository used for runtime provisioning.
The default is the official obsproject/obs-studio repository. Changing
this is an explicit trust decision by the caller.
pub fn get_repository(&self) -> &str
Sourcepub fn set_update(self, update: bool) -> Self
pub fn set_update(self, update: bool) -> Self
Controls whether an existing older/incompatible runtime may be replaced.
A missing runtime is still installed even when this is false.
pub fn get_update(&self) -> bool
pub fn set_update_target_mode( self, update_target_mode: UpdateTargetMode, ) -> Self
pub fn get_update_target_mode(&self) -> UpdateTargetMode
Sourcepub fn set_install_dir<P: Into<PathBuf>>(self, install_dir: P) -> Self
pub fn set_install_dir<P: Into<PathBuf>>(self, install_dir: P) -> Self
Overrides the directory where the prepared OBS runtime is installed. Defaults to the executable directory.
pub fn get_install_dir(&self) -> Option<&PathBuf>
Sourcepub fn set_cache_dir<P: Into<PathBuf>>(self, cache_dir: P) -> Self
pub fn set_cache_dir<P: Into<PathBuf>>(self, cache_dir: P) -> Self
Overrides the cache used for downloaded/extracted OBS release assets.
pub fn get_cache_dir(&self) -> Option<&PathBuf>
Sourcepub fn set_target_version(self, version: Version) -> Self
pub fn set_target_version(self, version: Version) -> Self
Overrides the OBS version this application is built against.
pub fn get_target_version(&self) -> &Version
Sourcepub fn set_no_restart(self) -> Self
👎Deprecated: runtime bootstrap no longer restarts the application
pub fn set_no_restart(self) -> Self
runtime bootstrap no longer restarts the application
Compatibility no-op retained from the old updater-script design. Runtime provisioning no longer spawns or restarts the application.
Trait Implementations§
Source§impl Clone for ObsBootstrapperOptions
impl Clone for ObsBootstrapperOptions
Source§impl Debug for ObsBootstrapperOptions
impl Debug for ObsBootstrapperOptions
Auto Trait Implementations§
impl Forget for ObsBootstrapperOptions
impl Freeze for ObsBootstrapperOptions
impl Move for ObsBootstrapperOptions
impl RefUnwindSafe for ObsBootstrapperOptions
impl Send for ObsBootstrapperOptions
impl Sync for ObsBootstrapperOptions
impl Unpin for ObsBootstrapperOptions
impl UnsafeUnpin 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