pub struct AdaptiveCacheStats {
pub entries: usize,
pub total_hits: usize,
pub total_misses: usize,
pub frequency_blocked: usize,
pub promotions: usize,
pub time_saved_us: u64,
}Expand description
Enhanced cache statistics
Fields§
§entries: usizeNumber of cached entries
total_hits: usizeTotal cache hits
total_misses: usizeTotal cache misses
frequency_blocked: usizeQueries blocked from cache (below threshold)
promotions: usizeQueries promoted to cache
time_saved_us: u64Estimated time saved (microseconds)
Trait Implementations§
Source§impl Clone for AdaptiveCacheStats
impl Clone for AdaptiveCacheStats
Source§fn clone(&self) -> AdaptiveCacheStats
fn clone(&self) -> AdaptiveCacheStats
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 AdaptiveCacheStats
impl Debug for AdaptiveCacheStats
Source§impl Default for AdaptiveCacheStats
impl Default for AdaptiveCacheStats
Source§fn default() -> AdaptiveCacheStats
fn default() -> AdaptiveCacheStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AdaptiveCacheStats
impl RefUnwindSafe for AdaptiveCacheStats
impl Send for AdaptiveCacheStats
impl Sync for AdaptiveCacheStats
impl Unpin for AdaptiveCacheStats
impl UnsafeUnpin for AdaptiveCacheStats
impl UnwindSafe for AdaptiveCacheStats
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