pub struct Counters {
pub logical_bytes: AtomicU64,
pub wire_bytes: AtomicU64,
pub chunks: AtomicU64,
pub chunks_compressed: AtomicU64,
pub chunks_skipped: AtomicU64,
pub chunks_zero: AtomicU64,
pub chunks_reused: AtomicU64,
pub compressor_runs: AtomicU64,
pub files_completed: AtomicU64,
pub files_total: AtomicU64,
pub bytes_total: AtomicU64,
}Fields§
§logical_bytes: AtomicU64Payload bytes as they exist on disk.
wire_bytes: AtomicU64Bytes handed to the transport, after compression and sealing.
chunks: AtomicU64§chunks_compressed: AtomicU64§chunks_skipped: AtomicU64Chunks skipped because the receiver already had them.
chunks_zero: AtomicU64Chunks that were entirely zero and crossed the wire as a flag.
chunks_reused: AtomicU64Chunks the receiver already had, sent as a reference rather than data.
compressor_runs: AtomicU64Chunks the compressor actually ran on, whether or not the result was
kept. The gap between this and chunks_compressed is wasted CPU.
files_completed: AtomicU64§files_total: AtomicU64§bytes_total: AtomicU64Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Counters
impl RefUnwindSafe for Counters
impl Send for Counters
impl Sync for Counters
impl Unpin for Counters
impl UnsafeUnpin for Counters
impl UnwindSafe for Counters
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more