pub struct MultiTierStats {
pub l1_hits: u64,
pub l2_hits: u64,
pub misses: u64,
pub promotions: u64,
pub demotions: u64,
pub l1_evictions: u64,
}Expand description
Statistics for multi-tier cache
Fields§
§l1_hits: u64L1 cache hits
l2_hits: u64L2 cache hits
misses: u64Cache misses (both L1 and L2)
promotions: u64Promotions from L2 to L1
demotions: u64Demotions from L1 to L2
l1_evictions: u64L1 evictions
Implementations§
Trait Implementations§
Source§impl Clone for MultiTierStats
impl Clone for MultiTierStats
Source§fn clone(&self) -> MultiTierStats
fn clone(&self) -> MultiTierStats
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 MultiTierStats
impl Debug for MultiTierStats
Source§impl Default for MultiTierStats
impl Default for MultiTierStats
Source§fn default() -> MultiTierStats
fn default() -> MultiTierStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MultiTierStats
impl RefUnwindSafe for MultiTierStats
impl Send for MultiTierStats
impl Sync for MultiTierStats
impl Unpin for MultiTierStats
impl UnwindSafe for MultiTierStats
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