pub struct Progress {
pub current: PathBuf,
pub items_done: usize,
pub items_total: usize,
pub bytes_done: u64,
pub bytes_total: u64,
}Expand description
A snapshot of a batch operation’s progress, emitted once per item as the
operation runs. items_total/bytes_total are fixed by a pre-walk before
the first item is processed; the *_done counts and current path advance
as work proceeds.
Fields§
§current: PathBufThe item currently being processed.
items_done: usizeItems completed so far (files; directories are structural).
items_total: usizeTotal items to process, known up front.
bytes_done: u64Bytes processed so far.
bytes_total: u64Total bytes to process, known up front (0 when unknown).
Trait Implementations§
impl Eq for Progress
impl StructuralPartialEq for Progress
Auto Trait Implementations§
impl Freeze for Progress
impl RefUnwindSafe for Progress
impl Send for Progress
impl Sync for Progress
impl Unpin for Progress
impl UnsafeUnpin for Progress
impl UnwindSafe for Progress
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.