#[non_exhaustive]pub struct Progress {
pub bytes_done: u64,
pub bytes_total: Option<u64>,
pub rate: f64,
pub eta: Option<Duration>,
pub elapsed: Duration,
}Expand description
Per-tick progress snapshot delivered to Reporter::report (FR-045).
#[non_exhaustive] allows additive fields in SemVer-minor releases per
FR-056. Downstream code MUST NOT exhaustively match or construct via
struct-literal syntax outside the defining crate.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.bytes_done: u64Bytes transferred so far.
bytes_total: Option<u64>Expected total bytes, if known.
rate: f64Smoothed instantaneous rate in bytes/second (non-negative).
eta: Option<Duration>Estimated time remaining (None when total is unknown OR rate is 0).
elapsed: DurationMonotonic wall-clock time since the copy loop began.
Trait Implementations§
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