pub struct PrefixCacheStats {
pub hits: usize,
pub misses: usize,
pub evictions: usize,
pub active_prefixes: usize,
pub total_cached_tokens: usize,
pub hit_rate: f32,
}Expand description
Prefix cache statistics
Fields§
§hits: usize§misses: usize§evictions: usize§active_prefixes: usize§total_cached_tokens: usize§hit_rate: f32Trait Implementations§
Source§impl Clone for PrefixCacheStats
impl Clone for PrefixCacheStats
Source§fn clone(&self) -> PrefixCacheStats
fn clone(&self) -> PrefixCacheStats
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 moreAuto Trait Implementations§
impl Freeze for PrefixCacheStats
impl RefUnwindSafe for PrefixCacheStats
impl Send for PrefixCacheStats
impl Sync for PrefixCacheStats
impl Unpin for PrefixCacheStats
impl UnsafeUnpin for PrefixCacheStats
impl UnwindSafe for PrefixCacheStats
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