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§fn clone(&self) -> ProgressSnapshot
fn clone(&self) -> ProgressSnapshot
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 ProgressSnapshot
impl Debug for ProgressSnapshot
impl Eq for ProgressSnapshot
Source§impl PartialEq for ProgressSnapshot
impl PartialEq for ProgressSnapshot
Source§fn eq(&self, other: &ProgressSnapshot) -> bool
fn eq(&self, other: &ProgressSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.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