pub struct CompressionMetrics {
pub bytes_before: Counter,
pub bytes_after: Counter,
pub compression_time_us: Histogram,
pub decompression_time_us: Histogram,
}Expand description
Compression metrics.
Fields§
§bytes_before: CounterBytes before compression.
bytes_after: CounterBytes after compression.
compression_time_us: HistogramCompression time (microseconds).
decompression_time_us: HistogramDecompression time (microseconds).
Implementations§
Source§impl CompressionMetrics
impl CompressionMetrics
Sourcepub fn compression_ratio(&self) -> f64
pub fn compression_ratio(&self) -> f64
Get the overall compression ratio.
Trait Implementations§
Source§impl Debug for CompressionMetrics
impl Debug for CompressionMetrics
Source§impl Default for CompressionMetrics
impl Default for CompressionMetrics
Source§fn default() -> CompressionMetrics
fn default() -> CompressionMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for CompressionMetrics
impl !RefUnwindSafe for CompressionMetrics
impl Send for CompressionMetrics
impl Sync for CompressionMetrics
impl Unpin for CompressionMetrics
impl UnsafeUnpin for CompressionMetrics
impl UnwindSafe for CompressionMetrics
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