pub struct TtlCacheStats {
pub total_entries: usize,
pub expired_entries: usize,
pub hit_count: u64,
pub miss_count: u64,
}Expand description
Snapshot of TtlCache statistics.
Fields§
§total_entries: usizeTotal number of entries in the underlying map (including expired ones that have not yet been purged).
expired_entries: usizeNumber of entries that are currently expired (lazy-not-yet-purged).
hit_count: u64Cumulative successful lookups (non-expired key found).
miss_count: u64Cumulative failed lookups (key absent or expired).
Trait Implementations§
Source§impl Clone for TtlCacheStats
impl Clone for TtlCacheStats
Source§fn clone(&self) -> TtlCacheStats
fn clone(&self) -> TtlCacheStats
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 TtlCacheStats
impl Debug for TtlCacheStats
Source§impl Default for TtlCacheStats
impl Default for TtlCacheStats
Source§fn default() -> TtlCacheStats
fn default() -> TtlCacheStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TtlCacheStats
impl RefUnwindSafe for TtlCacheStats
impl Send for TtlCacheStats
impl Sync for TtlCacheStats
impl Unpin for TtlCacheStats
impl UnsafeUnpin for TtlCacheStats
impl UnwindSafe for TtlCacheStats
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