pub struct SemanticCacheStatsSnapshot {
pub hits: u64,
pub exact_hits: u64,
pub subsumption_hits: u64,
pub misses: u64,
pub ttl_evictions: u64,
pub size_evictions: u64,
pub lock_failures: u64,
}Expand description
Snapshot of cache statistics (plain values for reading)
Fields§
§hits: u64Total cache hits (exact or subsumption)
exact_hits: u64Exact match hits
subsumption_hits: u64Subsumption hits (filtered from cached)
misses: u64Cache misses
ttl_evictions: u64Entries evicted due to TTL
size_evictions: u64Entries evicted due to size limit
lock_failures: u64Lock acquisition failures (indicates previous panic)
Trait Implementations§
Source§impl Clone for SemanticCacheStatsSnapshot
impl Clone for SemanticCacheStatsSnapshot
Source§fn clone(&self) -> SemanticCacheStatsSnapshot
fn clone(&self) -> SemanticCacheStatsSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SemanticCacheStatsSnapshot
impl Debug for SemanticCacheStatsSnapshot
Source§impl Default for SemanticCacheStatsSnapshot
impl Default for SemanticCacheStatsSnapshot
Source§fn default() -> SemanticCacheStatsSnapshot
fn default() -> SemanticCacheStatsSnapshot
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SemanticCacheStatsSnapshot
impl RefUnwindSafe for SemanticCacheStatsSnapshot
impl Send for SemanticCacheStatsSnapshot
impl Sync for SemanticCacheStatsSnapshot
impl Unpin for SemanticCacheStatsSnapshot
impl UnsafeUnpin for SemanticCacheStatsSnapshot
impl UnwindSafe for SemanticCacheStatsSnapshot
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