pub enum BootstrapStatus {
Downloading(f32, String),
Extracting(f32, String),
Error(Error),
RestartRequired,
}
Variants§
Downloading(f32, String)
Downloading status (first is progress from 0.0 to 1.0 and second is message)
Extracting(f32, String)
Extracting status (first is progress from 0.0 to 1.0 and second is message)
Error(Error)
RestartRequired
The application must be restarted to use the new version of OBS.
This is because the obs.dll file is in use by the application and can not be replaced while running.
Therefore the “updater” is spawned to watch for the application to exit and rename the “obs_new.dll” file to “obs.dll”.
The updater will start the application again with the same arguments as the original application.
Call ObsContext::spawn_updater()
Auto Trait Implementations§
impl Freeze for BootstrapStatus
impl RefUnwindSafe for BootstrapStatus
impl Send for BootstrapStatus
impl Sync for BootstrapStatus
impl Unpin for BootstrapStatus
impl UnwindSafe for BootstrapStatus
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