pub struct CacheManagerStats {
pub total_memory_bytes: usize,
pub used_memory_bytes: usize,
pub active_caches: usize,
pub total_blocks: usize,
pub free_blocks: usize,
pub cache_hit_rate: f32,
pub eviction_count: u64,
pub allocation_count: u64,
pub allocation_failures: u64,
}Expand description
Cache manager statistics
Fields§
§total_memory_bytes: usizeTotal memory allocated in bytes
used_memory_bytes: usizeMemory currently in use
active_caches: usizeNumber of active caches
total_blocks: usizeTotal blocks allocated
free_blocks: usizeFree blocks available
cache_hit_rate: f32Cache hit rate (for prefix caching)
eviction_count: u64Number of evictions performed
allocation_count: u64Number of successful allocations
allocation_failures: u64Number of failed allocations
Trait Implementations§
Source§impl Clone for CacheManagerStats
impl Clone for CacheManagerStats
Source§fn clone(&self) -> CacheManagerStats
fn clone(&self) -> CacheManagerStats
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 CacheManagerStats
impl Debug for CacheManagerStats
Source§impl<'de> Deserialize<'de> for CacheManagerStats
impl<'de> Deserialize<'de> for CacheManagerStats
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 CacheManagerStats
impl RefUnwindSafe for CacheManagerStats
impl Send for CacheManagerStats
impl Sync for CacheManagerStats
impl Unpin for CacheManagerStats
impl UnsafeUnpin for CacheManagerStats
impl UnwindSafe for CacheManagerStats
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