pub struct Progress<'a> {
pub bytes_copied: u64,
pub total_bytes: u64,
pub entries_done: u64,
pub entries_total: u64,
pub current_path: &'a Path,
}Expand description
A progress snapshot passed to the callback of
copy_tree_with_progress and move_tree_with_progress.
Fields§
§bytes_copied: u64Bytes copied so far. Non-decreasing across every call of one operation, and equal to the returned summary’s byte count on success.
total_bytes: u64Total regular-file bytes found by the pre-scan. Fixed for the whole
operation. A tree mutated concurrently can make bytes_copied land
under or over this value. Monotonicity still holds.
entries_done: u64Entries (files, directories, symlinks) completed so far.
entries_total: u64Entries found by the pre-scan. Fixed for the whole operation.
current_path: &'a PathThe entry being processed when this snapshot was taken. The first snapshot of an operation names the destination root.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Progress<'a>
impl<'a> RefUnwindSafe for Progress<'a>
impl<'a> Send for Progress<'a>
impl<'a> Sync for Progress<'a>
impl<'a> Unpin for Progress<'a>
impl<'a> UnsafeUnpin for Progress<'a>
impl<'a> UnwindSafe for Progress<'a>
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