pub struct TierStats {
pub name: String,
pub hits: u64,
pub size_used_bytes: usize,
pub entry_count: usize,
pub promotions: u64,
pub compressions: u64,
}Expand description
Per-tier statistics snapshot.
Fields§
§name: StringHuman-readable tier name.
hits: u64Number of cache hits served by this tier.
size_used_bytes: usizeNumber of bytes currently stored in this tier.
entry_count: usizeNumber of distinct entries currently in this tier.
promotions: u64Number of promotions from this tier to the tier above.
compressions: u64Number of times an entry was compressed before storage.
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