pub struct MeterSnapshot {
pub bytes_in: u64,
pub bytes_out: u64,
pub objects_done: u64,
pub objects_total: u64,
pub objects_skipped: u64,
pub in_flight: u64,
pub phase: Phase,
pub current_limit: u64,
pub target_rate: u64,
}Expand description
Fields§
§bytes_in: u64Total bytes read in (e.g. file content hashed during the walk).
bytes_out: u64Total bytes written/sent out (e.g. uploaded to a store).
objects_done: u64Objects finished (e.g. files hashed).
objects_total: u64Expected total objects, when known (0 means unknown).
objects_skipped: u64Objects skipped (e.g. already present, deduplicated).
in_flight: u64Objects currently in flight (a gauge: started minus finished).
phase: PhaseThe current coarse Phase.
current_limit: u64Advisory: the current adaptive throughput limit in bytes/sec, or 0
when not adaptive / unset. Display-only; never throttles the walk.
target_rate: u64Advisory: the adaptive controller’s target throughput in bytes/sec, or
0 when not adaptive / unset. Display-only; never throttles the walk.
Trait Implementations§
Source§impl Clone for MeterSnapshot
impl Clone for MeterSnapshot
Source§fn clone(&self) -> MeterSnapshot
fn clone(&self) -> MeterSnapshot
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 moreimpl Copy for MeterSnapshot
Source§impl Debug for MeterSnapshot
impl Debug for MeterSnapshot
Source§impl Default for MeterSnapshot
impl Default for MeterSnapshot
Source§fn default() -> MeterSnapshot
fn default() -> MeterSnapshot
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MeterSnapshot
impl RefUnwindSafe for MeterSnapshot
impl Send for MeterSnapshot
impl Sync for MeterSnapshot
impl Unpin for MeterSnapshot
impl UnsafeUnpin for MeterSnapshot
impl UnwindSafe for MeterSnapshot
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