pub struct Progress<S> {
pub step: S,
pub done: u64,
pub total: u64,
}Expand description
How far an operation has come: the step it is on, and how many of that
step’s units are done out of its total. Each step names its unit. Steps
arrive in the order the operation runs them, and within a step done
only grows and never passes total, which never shrinks.
Fields§
§step: SThe step the operation is on.
done: u64The step’s units done so far.
total: u64The step’s units in all, known as the step begins. It grows only when work the step had no way to count at its start turns up, such as slots that land while it reads them.
Trait Implementations§
impl<S: Copy> Copy for Progress<S>
impl<S: Eq> Eq for Progress<S>
impl<S> StructuralPartialEq for Progress<S>
Auto Trait Implementations§
impl<S> Freeze for Progress<S>where
S: Freeze,
impl<S> RefUnwindSafe for Progress<S>where
S: RefUnwindSafe,
impl<S> Send for Progress<S>where
S: Send,
impl<S> Sync for Progress<S>where
S: Sync,
impl<S> Unpin for Progress<S>where
S: Unpin,
impl<S> UnsafeUnpin for Progress<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for Progress<S>where
S: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more