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.

content_length: Option<u64>

The total

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.