pub enum CacheEvent {
Hit {
pattern_name: String,
timestamp: Instant,
},
Miss {
pattern_name: String,
timestamp: Instant,
},
Eviction {
pattern_name: String,
timestamp: Instant,
},
}Expand description
Events emitted by the cache.
Variants§
Hit
A cache hit occurred.
Fields
Miss
A cache miss occurred.
Fields
Eviction
An entry was evicted from the cache.
Trait Implementations§
Source§impl Clone for CacheEvent
impl Clone for CacheEvent
Source§fn clone(&self) -> CacheEvent
fn clone(&self) -> CacheEvent
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 CacheEvent
impl Debug for CacheEvent
Source§impl ResilienceEvent for CacheEvent
impl ResilienceEvent for CacheEvent
Auto Trait Implementations§
impl Freeze for CacheEvent
impl RefUnwindSafe for CacheEvent
impl Send for CacheEvent
impl Sync for CacheEvent
impl Unpin for CacheEvent
impl UnwindSafe for CacheEvent
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