pub enum AppUpdateEvent {
Available(UpdatePackageInfo),
DownloadStarted {
version: String,
},
DownloadProgress {
version: String,
downloaded_bytes: u64,
total_bytes: Option<u64>,
progress: Option<u8>,
},
Downloaded {
version: String,
},
InstallRequested {
version: String,
},
StoreOpened {
version: String,
},
Failed {
stage: AppUpdateStage,
error: String,
},
}Variants§
Available(UpdatePackageInfo)
DownloadStarted
DownloadProgress
Downloaded
InstallRequested
StoreOpened
Store channel: the listing was opened; nothing was downloaded.
Failed
Trait Implementations§
Source§impl Clone for AppUpdateEvent
impl Clone for AppUpdateEvent
Auto Trait Implementations§
impl Freeze for AppUpdateEvent
impl RefUnwindSafe for AppUpdateEvent
impl Send for AppUpdateEvent
impl Sync for AppUpdateEvent
impl Unpin for AppUpdateEvent
impl UnsafeUnpin for AppUpdateEvent
impl UnwindSafe for AppUpdateEvent
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