Enum tauri::UpdaterEvent
source · [−]pub enum UpdaterEvent {
UpdateAvailable {
body: String,
date: Option<OffsetDateTime>,
version: String,
},
Pending,
DownloadProgress {
chunk_length: usize,
content_length: Option<u64>,
},
Downloaded,
Updated,
AlreadyUpToDate,
Error(String),
}
Available on crate feature
updater
only.Expand description
Updater events.
Variants
UpdateAvailable
Fields
body: String
The update body.
date: Option<OffsetDateTime>
The update release date.
version: String
The update version.
An update is available.
Pending
The update is pending and about to be downloaded.
DownloadProgress
Fields
chunk_length: usize
The amount that was downloaded on this iteration. Does not accumulate with previous chunks.
The update download received a progress event.
Downloaded
The update has been download and is now about to be installed.
Updated
The update has been applied and the app is now up to date.
AlreadyUpToDate
The app is already up to date.
Error(String)
An error occurred while updating.
Trait Implementations
sourceimpl Clone for UpdaterEvent
impl Clone for UpdaterEvent
sourcefn clone(&self) -> UpdaterEvent
fn clone(&self) -> UpdaterEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for UpdaterEvent
impl Send for UpdaterEvent
impl Sync for UpdaterEvent
impl Unpin for UpdaterEvent
impl UnwindSafe for UpdaterEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more