Enum tinylfu_cached::cache::stats::StatsType
source · #[repr(usize)]#[non_exhaustive]pub enum StatsType {
CacheHits,
CacheMisses,
KeysAdded,
KeysDeleted,
KeysUpdated,
KeysRejected,
WeightAdded,
WeightRemoved,
AccessAdded,
AccessDropped,
}Expand description
Defines various stats that are measured in the cache.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CacheHits
Defines the number of hits for the keys
CacheMisses
Defines the number of misses for the keys
KeysAdded
Defines the number of keys added
KeysDeleted
Defines the number of keys deleted
KeysUpdated
Defines the number of keys updated
KeysRejected
Defines the number of keys rejected
WeightAdded
Defines the total weight added
WeightRemoved
Defines the total weight removed
AccessAdded
Defines the total number of gets registered in the frequency counter
AccessDropped
Defines the total number of gets dropped
Trait Implementations§
source§impl PartialEq<StatsType> for StatsType
impl PartialEq<StatsType> for StatsType
impl Copy for StatsType
impl Eq for StatsType
impl StructuralEq for StatsType
impl StructuralPartialEq for StatsType
Auto Trait Implementations§
impl RefUnwindSafe for StatsType
impl Send for StatsType
impl Sync for StatsType
impl Unpin for StatsType
impl UnwindSafe for StatsType
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