pub enum InstallEvent {
Queued,
Preparing,
Status(String),
Progress(InstallProgress),
Done,
Failed {
message: String,
},
Cancelled,
}Expand description
A lifecycle event for an install job.
Variants§
Queued
Waiting to start.
Preparing
Resolving the plan before transfer.
Status(String)
A human-readable status line.
Progress(InstallProgress)
Download progress.
Done
Completed successfully.
Failed
Failed, with a message.
Cancelled
Cancelled by the user.
Implementations§
Source§impl InstallEvent
impl InstallEvent
Sourcepub fn is_terminal(&self) -> bool
pub fn is_terminal(&self) -> bool
Whether this event ends the job (done/failed/cancelled).
Trait Implementations§
Source§impl Clone for InstallEvent
impl Clone for InstallEvent
Source§fn clone(&self) -> InstallEvent
fn clone(&self) -> InstallEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InstallEvent
impl Debug for InstallEvent
impl Eq for InstallEvent
Source§impl Hash for InstallEvent
impl Hash for InstallEvent
Source§impl PartialEq for InstallEvent
impl PartialEq for InstallEvent
impl StructuralPartialEq for InstallEvent
Auto Trait Implementations§
impl Freeze for InstallEvent
impl RefUnwindSafe for InstallEvent
impl Send for InstallEvent
impl Sync for InstallEvent
impl Unpin for InstallEvent
impl UnsafeUnpin for InstallEvent
impl UnwindSafe for InstallEvent
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