pub enum AppUpdateStatus {
Idle,
Checking,
UpToDate,
Available {
package: UpdatePackage,
},
Downloading {
downloaded: u64,
total: Option<u64>,
},
Verifying,
AwaitingConfirmation,
Installing,
Error(String),
}Expand description
Observable state of the application update flow.
Variants§
Idle
No operation has started.
Checking
The release feed is being queried.
UpToDate
The running application is current.
Available
A package can be installed.
Fields
§
package: UpdatePackageWhat the release feed offers, including its size and digest when it published them.
Downloading
A package is being transferred to the platform installer.
Fields
Verifying
The transfer finished and the package is being checked against the digest the release feed published.
AwaitingConfirmation
The platform is asking the user to approve installation.
Installing
The platform installer accepted the package.
Error(String)
The operation could not continue.
Trait Implementations§
Source§impl Clone for AppUpdateStatus
impl Clone for AppUpdateStatus
Source§impl Debug for AppUpdateStatus
impl Debug for AppUpdateStatus
Source§impl Default for AppUpdateStatus
impl Default for AppUpdateStatus
impl Eq for AppUpdateStatus
Source§impl PartialEq for AppUpdateStatus
impl PartialEq for AppUpdateStatus
impl StructuralPartialEq for AppUpdateStatus
Auto Trait Implementations§
impl Freeze for AppUpdateStatus
impl RefUnwindSafe for AppUpdateStatus
impl Send for AppUpdateStatus
impl Sync for AppUpdateStatus
impl Unpin for AppUpdateStatus
impl UnsafeUnpin for AppUpdateStatus
impl UnwindSafe for AppUpdateStatus
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