pub struct AuditLog { /* private fields */ }Implementations§
Source§impl AuditLog
impl AuditLog
pub fn new(max_entries: usize) -> Self
pub fn record(&self, entry: AuditEntry)
pub fn entries(&self) -> Vec<AuditEntry>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn clear(&self)
pub fn average_waste_ratio(&self) -> f64
pub fn total_tokens_used(&self) -> u64
pub fn total_tokens_saved(&self) -> u64
pub fn cache_hit_rate(&self) -> f64
pub fn layer_distribution(&self) -> HashMap<u8, usize>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AuditLog
impl RefUnwindSafe for AuditLog
impl Send for AuditLog
impl Sync for AuditLog
impl Unpin for AuditLog
impl UnsafeUnpin for AuditLog
impl UnwindSafe for AuditLog
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