pub struct CacheHandleStats {
pub memory_bytes: usize,
pub blocks_allocated: usize,
pub tokens_stored: usize,
pub utilization: f32,
pub last_access: Instant,
}Expand description
Statistics for individual cache handle
Fields§
§memory_bytes: usizeTotal memory usage in bytes
blocks_allocated: usizeNumber of blocks allocated
tokens_stored: usizeNumber of tokens stored
utilization: f32Memory utilization ratio
last_access: InstantLast access timestamp (for LRU)
Trait Implementations§
Source§impl Clone for CacheHandleStats
impl Clone for CacheHandleStats
Source§fn clone(&self) -> CacheHandleStats
fn clone(&self) -> CacheHandleStats
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 CacheHandleStats
impl RefUnwindSafe for CacheHandleStats
impl Send for CacheHandleStats
impl Sync for CacheHandleStats
impl Unpin for CacheHandleStats
impl UnsafeUnpin for CacheHandleStats
impl UnwindSafe for CacheHandleStats
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