pub struct CacheUsageStats {
pub total_hits: u64,
pub total_misses: u64,
pub hit_ratio: f32,
pub memory_savings_bytes: u64,
pub time_savings_us: u64,
}Expand description
Cache usage statistics
Fields§
§total_hits: u64Total cache hits
total_misses: u64Total cache misses
hit_ratio: f32Cache hit ratio
memory_savings_bytes: u64Memory savings from caching (bytes)
time_savings_us: u64Time savings from caching (microseconds)
Trait Implementations§
Source§impl Debug for CacheUsageStats
impl Debug for CacheUsageStats
Source§impl Default for CacheUsageStats
impl Default for CacheUsageStats
Source§fn default() -> CacheUsageStats
fn default() -> CacheUsageStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CacheUsageStats
impl RefUnwindSafe for CacheUsageStats
impl Send for CacheUsageStats
impl Sync for CacheUsageStats
impl Unpin for CacheUsageStats
impl UnsafeUnpin for CacheUsageStats
impl UnwindSafe for CacheUsageStats
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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