pub struct TieredCacheStats {
pub total_hits: u64,
pub total_misses: u64,
pub hit_rate: f64,
pub tier_stats: Vec<TierStats>,
}Expand description
Aggregate statistics snapshot for the whole TieredCache.
Fields§
§total_hits: u64Total successful lookups across all tiers.
total_misses: u64Total failed lookups (miss on every tier).
hit_rate: f64total_hits / (total_hits + total_misses), or 0.0 when no requests.
tier_stats: Vec<TierStats>Per-tier detail.
Trait Implementations§
Source§impl Clone for TieredCacheStats
impl Clone for TieredCacheStats
Source§fn clone(&self) -> TieredCacheStats
fn clone(&self) -> TieredCacheStats
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 moreAuto Trait Implementations§
impl Freeze for TieredCacheStats
impl RefUnwindSafe for TieredCacheStats
impl Send for TieredCacheStats
impl Sync for TieredCacheStats
impl Unpin for TieredCacheStats
impl UnsafeUnpin for TieredCacheStats
impl UnwindSafe for TieredCacheStats
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