pub enum ProgressEvent {
Start {
id: TaskId,
label: Cow<'static, str>,
total: Option<u64>,
},
Advance {
id: TaskId,
delta: u64,
},
Message {
id: TaskId,
msg: Cow<'static, str>,
},
Finish {
id: TaskId,
},
}Expand description
Structured progress event emitted by long-running operations.
Variants§
Trait Implementations§
Source§impl Clone for ProgressEvent
impl Clone for ProgressEvent
Source§fn clone(&self) -> ProgressEvent
fn clone(&self) -> ProgressEvent
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 ProgressEvent
impl Debug for ProgressEvent
impl Eq for ProgressEvent
Source§impl PartialEq for ProgressEvent
impl PartialEq for ProgressEvent
Source§fn eq(&self, other: &ProgressEvent) -> bool
fn eq(&self, other: &ProgressEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProgressEvent
Auto Trait Implementations§
impl Freeze for ProgressEvent
impl RefUnwindSafe for ProgressEvent
impl Send for ProgressEvent
impl Sync for ProgressEvent
impl Unpin for ProgressEvent
impl UnsafeUnpin for ProgressEvent
impl UnwindSafe for ProgressEvent
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