#[non_exhaustive]pub enum DriverEvent {
Checking,
UpToDate,
Found(Release),
Downloading {
downloaded: u64,
total: Option<u64>,
},
Installing,
ReadyToRelaunch(Version),
Failed(UpdateError),
Settled,
}Expand description
Something an UpdateDriver wants the app to know.
Each event maps onto the GPUI UpdateStatus of the same name, except
Settled, which tells the Updater that nothing is in
flight any more.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Checking
A check started.
UpToDate
The check finished and the running version is the latest.
Found(Release)
The check found a newer release.
Downloading
The update is downloading. total is None when the size is unknown;
drivers that cannot observe byte progress report
{ downloaded: 0, total: None }.
Fields
Installing
The update is being verified, extracted, or installed.
ReadyToRelaunch(Version)
The update is staged; relaunching will run version.
Failed(UpdateError)
The current operation failed. The error’s message is shown to the user; its kind tells the app what kind of failure it was.
Settled
The driver finished its session (for example, the user dismissed an update prompt or cancelled a download). Nothing is in flight any more.
Trait Implementations§
Source§impl Clone for DriverEvent
impl Clone for DriverEvent
Source§fn clone(&self) -> DriverEvent
fn clone(&self) -> DriverEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for DriverEvent
impl RefUnwindSafe for DriverEvent
impl Send for DriverEvent
impl Sync for DriverEvent
impl Unpin for DriverEvent
impl UnsafeUnpin for DriverEvent
impl UnwindSafe for DriverEvent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more