pub struct StudyCacheStats {
pub study_count: usize,
pub hot_entries: usize,
pub warm_entries: usize,
pub cold_entries: usize,
pub hot_memory_bytes: usize,
pub warm_memory_bytes: usize,
pub total_memory_bytes: usize,
pub budget_bytes: usize,
pub utilization_percent: f32,
pub hit_rate_percent: f32,
pub hits: u64,
pub misses: u64,
}Expand description
Cache statistics for monitoring
Fields§
§study_count: usizeNumber of studies in cache
hot_entries: usizeNumber of entries in hot tier
warm_entries: usizeNumber of entries in warm tier
cold_entries: usizeNumber of entries in cold tier (metadata only)
hot_memory_bytes: usizeHot tier memory usage in bytes
warm_memory_bytes: usizeWarm tier memory usage in bytes
total_memory_bytes: usizeTotal memory usage in bytes
budget_bytes: usizeMemory budget in bytes
utilization_percent: f32Utilization percentage (0-100)
hit_rate_percent: f32Cache hit rate (0-100)
hits: u64Total cache hits
misses: u64Total cache misses
Trait Implementations§
Source§impl Clone for StudyCacheStats
impl Clone for StudyCacheStats
Source§fn clone(&self) -> StudyCacheStats
fn clone(&self) -> StudyCacheStats
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 StudyCacheStats
impl Debug for StudyCacheStats
Auto Trait Implementations§
impl Freeze for StudyCacheStats
impl RefUnwindSafe for StudyCacheStats
impl Send for StudyCacheStats
impl Sync for StudyCacheStats
impl Unpin for StudyCacheStats
impl UnwindSafe for StudyCacheStats
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