pub enum After {
RestartApp,
RestartWith(Vec<OsString>),
Exit,
}Expand description
What happens once an update is applied, and who ends the process for it.
Variants§
RestartApp
Start the app again without arguments: the GUI. The caller ends the process.
RestartWith(Vec<OsString>)
Start the app again with these arguments. The caller ends the process.
Exit
Exit; something else starts it again (a service manager), or nothing. The process
exits in Updater::apply: a daemon or a command line has nothing to close.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for After
impl RefUnwindSafe for After
impl Send for After
impl Sync for After
impl Unpin for After
impl UnsafeUnpin for After
impl UnwindSafe for After
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