pub struct CacheStats {
pub total_reads: u64,
pub cache_hits: u64,
pub total_original_tokens: u64,
pub total_sent_tokens: u64,
pub files_tracked: usize,
}Fields§
§total_reads: u64§cache_hits: u64§total_original_tokens: u64§total_sent_tokens: u64§files_tracked: usizeImplementations§
Source§impl CacheStats
impl CacheStats
pub fn hit_rate(&self) -> f64
pub fn tokens_saved(&self) -> u64
pub fn savings_percent(&self) -> f64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CacheStats
impl RefUnwindSafe for CacheStats
impl Send for CacheStats
impl Sync for CacheStats
impl Unpin for CacheStats
impl UnsafeUnpin for CacheStats
impl UnwindSafe for CacheStats
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