pub enum Staged {
Launcher(PathBuf),
Installer {
installer: PathBuf,
sha256: String,
own_dir: PathBuf,
version: String,
},
MacDmg(MacUpgrade),
Package(PackageUpgrade),
}Expand description
What a confirmed upgrade restarts into.
Variants§
Launcher(PathBuf)
A portable’s new folder: start its launcher.
Installer
A setup.exe install: run this installer, then start own_dir
again. The installer keeps the install’s own mode (all users or the
current one): Inno Setup’s default UsePreviousPrivileges reads it
from the previous install, which the folder alone can’t tell.
sha256 is the release’s digest, checked again as it runs. version
is the release, for the “Updating to crate::updating_window).
MacDmg(MacUpgrade)
A macOS .app: replace it from the release’s .dmg once this
launcher has exited (upgrade_macos).
Package(PackageUpgrade)
A Linux .deb or .rpm install: the password was asked for and the
install helper is waiting for this launcher to quit
(crate::upgrade_package). Nothing is started after this exits: the
helper installs and its waiter starts AgentMux.
Trait Implementations§
impl Eq for Staged
impl StructuralPartialEq for Staged
Auto Trait Implementations§
impl Freeze for Staged
impl RefUnwindSafe for Staged
impl Send for Staged
impl Sync for Staged
impl Unpin for Staged
impl UnsafeUnpin for Staged
impl UnwindSafe for Staged
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.