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
An update is available.
Fields
§
date: Option<OffsetDateTime>
The update release date.
Pending
The update is pending and about to be downloaded.
DownloadProgress
The update download received a progress event.
Fields
Downloaded
The update has been downloaded 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§
source§impl Clone for UpdaterEvent
impl Clone for UpdaterEvent
source§fn clone(&self) -> UpdaterEvent
fn clone(&self) -> UpdaterEvent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for UpdaterEvent
impl RefUnwindSafe for UpdaterEvent
impl Send for UpdaterEvent
impl Sync for UpdaterEvent
impl Unpin for UpdaterEvent
impl UnwindSafe for UpdaterEvent
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