pub struct OverallCacheStats {
pub total_hits: u64,
pub total_misses: u64,
pub overall_hit_rate: f64,
pub total_entries: usize,
pub total_memory_bytes: u64,
pub total_disk_bytes: u64,
pub efficiency_score: f64,
pub promotions: u64,
pub demotions: u64,
}Expand description
Overall cache system statistics
Fields§
§total_hits: u64Total hits across all cache levels
total_misses: u64Total misses across all cache levels
overall_hit_rate: f64Overall hit rate
total_entries: usizeTotal entries across all levels
total_memory_bytes: u64Total memory usage across all levels
total_disk_bytes: u64Total disk usage
efficiency_score: f64Cache efficiency score (0.0 to 1.0)
promotions: u64Data promotion count (L2 to L1)
demotions: u64Data demotion count (L1 to L2)
Trait Implementations§
Source§impl Clone for OverallCacheStats
impl Clone for OverallCacheStats
Source§fn clone(&self) -> OverallCacheStats
fn clone(&self) -> OverallCacheStats
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 OverallCacheStats
impl Debug for OverallCacheStats
Source§impl Default for OverallCacheStats
impl Default for OverallCacheStats
Source§impl<'de> Deserialize<'de> for OverallCacheStats
impl<'de> Deserialize<'de> for OverallCacheStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for OverallCacheStats
impl RefUnwindSafe for OverallCacheStats
impl Send for OverallCacheStats
impl Sync for OverallCacheStats
impl Unpin for OverallCacheStats
impl UnsafeUnpin for OverallCacheStats
impl UnwindSafe for OverallCacheStats
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