#[non_exhaustive]pub enum Status {
Idle,
Checking,
Downloading(Version, u8),
Installing(Version),
PendingRestart(Version),
Restarting(Version),
}
Expand description
The possible statuses that an Updater
can have.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Idle
Nothing interesting is currently happening — there is no active upgrade underway or pending.
Checking
The updater is currently checking whether there is a newer version of the application available.
Downloading(Version, u8)
A newer version of the application is available, and the updater is currently downloading the release file.
Installing(Version)
A newer version of the application is available, and the updater is currently installing it.
PendingRestart(Version)
A newer version of the application is available, and the updater is currently waiting to start the upgrade process, but is blocked from doing so due to one or more critical actions being in progress.
Restarting(Version)
A newer version of the application is available, and the updater is currently in the process of restarting the application to apply the upgrade. No new critical actions are allowed to start.
Trait Implementations§
impl Eq for Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.