pub struct UnifiedCacheStats {
pub l1_stats: CacheLevelStats,
pub l2_stats: CacheLevelStats,
pub overall_stats: OverallCacheStats,
pub preheating_stats: CachePreheatingStats,
pub tuning_stats: TuningStats,
pub performance_metrics: PerformanceMetrics,
pub timestamp: u64,
}Expand description
Unified cache statistics
Aggregates statistics from all cache levels and intelligent features
Fields§
§l1_stats: CacheLevelStatsL1 cache statistics
l2_stats: CacheLevelStatsL2 cache statistics
overall_stats: OverallCacheStatsOverall cache statistics
preheating_stats: CachePreheatingStatsPredictive preheating statistics
tuning_stats: TuningStatsAdaptive tuning statistics
performance_metrics: PerformanceMetricsPerformance metrics
timestamp: u64Statistics collection timestamp
Implementations§
Source§impl UnifiedCacheStats
impl UnifiedCacheStats
Sourcepub fn update_overall_stats(&mut self)
pub fn update_overall_stats(&mut self)
Update overall statistics from individual cache level stats
Sourcepub fn summary_report(&self) -> String
pub fn summary_report(&self) -> String
Get a summary report as a formatted string
Sourcepub fn is_performing_well(&self, target_hit_rate: f64) -> bool
pub fn is_performing_well(&self, target_hit_rate: f64) -> bool
Check if the cache is performing well based on target metrics
Trait Implementations§
Source§impl Clone for UnifiedCacheStats
impl Clone for UnifiedCacheStats
Source§fn clone(&self) -> UnifiedCacheStats
fn clone(&self) -> UnifiedCacheStats
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 UnifiedCacheStats
impl Debug for UnifiedCacheStats
Source§impl Default for UnifiedCacheStats
impl Default for UnifiedCacheStats
Source§impl<'de> Deserialize<'de> for UnifiedCacheStats
impl<'de> Deserialize<'de> for UnifiedCacheStats
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 UnifiedCacheStats
impl RefUnwindSafe for UnifiedCacheStats
impl Send for UnifiedCacheStats
impl Sync for UnifiedCacheStats
impl Unpin for UnifiedCacheStats
impl UnsafeUnpin for UnifiedCacheStats
impl UnwindSafe for UnifiedCacheStats
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