pub enum CacheEvent {
Hit {
read_tokens: u64,
},
Break {
write_tokens: u64,
reason: String,
},
Partial {
read_tokens: u64,
write_tokens: u64,
},
Miss,
}Expand description
Event produced by cache tracking for each API call.
Variants§
Hit
Full cache hit — all cached content was reused.
Break
Cache break — previously cached content was not reused.
Partial
Partial hit — some cached, some new.
Miss
No cache interaction (first call or caching disabled).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CacheEvent
impl RefUnwindSafe for CacheEvent
impl Send for CacheEvent
impl Sync for CacheEvent
impl Unpin for CacheEvent
impl UnsafeUnpin 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