pub struct ProgressSnapshot {
pub done: usize,
pub total: usize,
pub phase: String,
}Expand description
A point-in-time view of a Progress handle, handed to Sink::render.
Fields§
§done: usizeUnits completed so far.
total: usizeTotal units of work, or 0 when the total is not yet known.
phase: StringCurrent human phase label (e.g. "importing commits").
Trait Implementations§
Source§impl Clone for ProgressSnapshot
impl Clone for ProgressSnapshot
Source§impl Debug for ProgressSnapshot
impl Debug for ProgressSnapshot
impl Eq for ProgressSnapshot
Source§impl PartialEq for ProgressSnapshot
impl PartialEq for ProgressSnapshot
impl StructuralPartialEq for ProgressSnapshot
Auto Trait Implementations§
impl Freeze for ProgressSnapshot
impl RefUnwindSafe for ProgressSnapshot
impl Send for ProgressSnapshot
impl Sync for ProgressSnapshot
impl Unpin for ProgressSnapshot
impl UnsafeUnpin for ProgressSnapshot
impl UnwindSafe for ProgressSnapshot
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