pub struct TierStats {
pub size_bytes: u64,
pub max_size_bytes: u64,
pub entry_count: u64,
pub hits: u64,
pub misses: u64,
pub evictions: u64,
pub compression_ratio: Option<f64>,
pub peer_count: Option<u32>,
pub healthy_peers: Option<u32>,
}Expand description
Statistics for a cache tier
Fields§
§size_bytes: u64Current size in bytes
max_size_bytes: u64Maximum size in bytes
entry_count: u64Number of entries
hits: u64Hit count
misses: u64Miss count
evictions: u64Eviction count
compression_ratio: Option<f64>Compression ratio (for L2)
peer_count: Option<u32>Peer count (for L3)
healthy_peers: Option<u32>Healthy peer count (for L3)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TierStats
impl RefUnwindSafe for TierStats
impl Send for TierStats
impl Sync for TierStats
impl Unpin for TierStats
impl UnsafeUnpin for TierStats
impl UnwindSafe for TierStats
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