pub enum UpdateProgress {
DownloadStarted {
total_bytes: Option<u64>,
},
Downloaded {
chunk_bytes: usize,
downloaded_bytes: u64,
total_bytes: Option<u64>,
},
DownloadFinished {
downloaded_bytes: u64,
},
VerificationStarted,
VerificationFinished,
Staged {
path: PathBuf,
},
InstallStarted {
artifact: PathBuf,
},
InstallFinished {
installation: InstalledUpdate,
},
}Expand description
Bounded milestones emitted by download, verification, and installation operations.
Variants§
DownloadStarted
Downloaded
DownloadFinished
VerificationStarted
VerificationFinished
Staged
InstallStarted
InstallFinished
Fields
§
installation: InstalledUpdateTrait Implementations§
Source§impl Clone for UpdateProgress
impl Clone for UpdateProgress
Source§fn clone(&self) -> UpdateProgress
fn clone(&self) -> UpdateProgress
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 moreSource§impl Debug for UpdateProgress
impl Debug for UpdateProgress
impl Eq for UpdateProgress
Source§impl PartialEq for UpdateProgress
impl PartialEq for UpdateProgress
impl StructuralPartialEq for UpdateProgress
Auto Trait Implementations§
impl Freeze for UpdateProgress
impl RefUnwindSafe for UpdateProgress
impl Send for UpdateProgress
impl Sync for UpdateProgress
impl Unpin for UpdateProgress
impl UnsafeUnpin for UpdateProgress
impl UnwindSafe for UpdateProgress
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