pub struct CodecPerformanceStats {
pub total_compressions: u64,
pub total_decompressions: u64,
pub total_compression_time: Duration,
pub total_decompression_time: Duration,
pub average_compression_ratio: f32,
pub average_quality_score: f32,
pub cache_hits: u64,
pub cache_misses: u64,
}Fields§
§total_compressions: u64§total_decompressions: u64§total_compression_time: Duration§total_decompression_time: Duration§average_compression_ratio: f32§average_quality_score: f32§cache_hits: u64§cache_misses: u64Trait Implementations§
Source§impl Clone for CodecPerformanceStats
impl Clone for CodecPerformanceStats
Source§fn clone(&self) -> CodecPerformanceStats
fn clone(&self) -> CodecPerformanceStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CodecPerformanceStats
impl Debug for CodecPerformanceStats
Source§impl Default for CodecPerformanceStats
impl Default for CodecPerformanceStats
Source§fn default() -> CodecPerformanceStats
fn default() -> CodecPerformanceStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CodecPerformanceStats
impl RefUnwindSafe for CodecPerformanceStats
impl Send for CodecPerformanceStats
impl Sync for CodecPerformanceStats
impl Unpin for CodecPerformanceStats
impl UnsafeUnpin for CodecPerformanceStats
impl UnwindSafe for CodecPerformanceStats
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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