pub enum UpdateInstallState {
Idle,
Downloading {
downloaded: u64,
total: Option<u64>,
},
Verifying,
Extracting,
Installing,
Completed {
version: String,
needs_gatekeeper_approval: bool,
},
Failed {
message: String,
},
}Expand description
Phase of an in-app update install, carried by UpdateStatusSnapshot and
the update/installProgress notification.
Internally tagged so the wire form names its own phase
({"phase":"downloading","downloaded":10,"total":100}), which keeps a
client from mislabeling a phase it did not expect.
Variants§
Idle
No install has run, or the last one was superseded by a newer check.
Downloading
Downloading the release archive.
Fields
Verifying
Checksum metadata resolved; hashing the downloaded archive.
Extracting
Unpacking the archive and staging the new bundle.
Installing
Replacing the installed bundle on disk.
Completed
The install finished.
Fields
Failed
The install failed.
Implementations§
Source§impl UpdateInstallState
impl UpdateInstallState
Sourcepub fn is_in_flight(&self) -> bool
pub fn is_in_flight(&self) -> bool
Whether an install is currently in flight, so a client can disable the install action instead of starting a second concurrent one.
Trait Implementations§
Source§impl Clone for UpdateInstallState
impl Clone for UpdateInstallState
Source§impl Debug for UpdateInstallState
impl Debug for UpdateInstallState
Source§impl Default for UpdateInstallState
impl Default for UpdateInstallState
Source§impl<'de> Deserialize<'de> for UpdateInstallState
impl<'de> Deserialize<'de> for UpdateInstallState
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
impl Eq for UpdateInstallState
Source§impl PartialEq for UpdateInstallState
impl PartialEq for UpdateInstallState
Source§impl Serialize for UpdateInstallState
impl Serialize for UpdateInstallState
impl StructuralPartialEq for UpdateInstallState
Auto Trait Implementations§
impl Forget for UpdateInstallState
impl Freeze for UpdateInstallState
impl RefUnwindSafe for UpdateInstallState
impl Send for UpdateInstallState
impl Sync for UpdateInstallState
impl Unpin for UpdateInstallState
impl UnsafeUnpin for UpdateInstallState
impl UnwindSafe for UpdateInstallState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.