pub enum UpdatePhase {
NoUpdate,
Prepare,
Replace,
Cleanup,
}Expand description
The phase of the three-phase update process which an UpdateState is in.
The update is driven forward by relaunching the application between phases,
passing a serialized UpdateState each time (see
RESUME_FLAG). Each phase runs from a different
binary so that the running executable is never asked to overwrite itself.
Variants§
NoUpdate
No update is in progress (the default, used when resuming with no state).
Prepare
The original application has downloaded the new binary and is about to
launch it to perform the replace phase.
Replace
The freshly downloaded binary overwrites the original application and
launches it to perform the cleanup phase.
Cleanup
The updated original application removes the temporary downloaded binary.
Trait Implementations§
Source§impl Clone for UpdatePhase
impl Clone for UpdatePhase
Source§fn clone(&self) -> UpdatePhase
fn clone(&self) -> UpdatePhase
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for UpdatePhase
Source§impl Debug for UpdatePhase
impl Debug for UpdatePhase
Source§impl Default for UpdatePhase
impl Default for UpdatePhase
Source§fn default() -> UpdatePhase
fn default() -> UpdatePhase
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdatePhase
impl<'de> Deserialize<'de> for UpdatePhase
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for UpdatePhase
impl Display for UpdatePhase
impl Eq for UpdatePhase
Source§impl PartialEq for UpdatePhase
impl PartialEq for UpdatePhase
Source§fn eq(&self, other: &UpdatePhase) -> bool
fn eq(&self, other: &UpdatePhase) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UpdatePhase
impl Serialize for UpdatePhase
impl StructuralPartialEq for UpdatePhase
Auto Trait Implementations§
impl Freeze for UpdatePhase
impl RefUnwindSafe for UpdatePhase
impl Send for UpdatePhase
impl Sync for UpdatePhase
impl Unpin for UpdatePhase
impl UnsafeUnpin for UpdatePhase
impl UnwindSafe for UpdatePhase
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