pub struct CandidateCacheStats {
pub cache_hits: u64,
pub cache_misses: u64,
pub entries_expired: u64,
pub current_size: usize,
pub hit_rate: f64,
pub avg_entry_age: Duration,
}Expand description
Statistics for candidate cache
Fields§
§cache_hits: u64Total cache hits
cache_misses: u64Total cache misses
entries_expired: u64Total entries expired
current_size: usizeCurrent cache size
hit_rate: f64Cache hit rate
avg_entry_age: DurationAverage entry age
Trait Implementations§
Source§impl Clone for CandidateCacheStats
impl Clone for CandidateCacheStats
Source§fn clone(&self) -> CandidateCacheStats
fn clone(&self) -> CandidateCacheStats
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 CandidateCacheStats
impl Debug for CandidateCacheStats
Source§impl Default for CandidateCacheStats
impl Default for CandidateCacheStats
Source§fn default() -> CandidateCacheStats
fn default() -> CandidateCacheStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CandidateCacheStats
impl RefUnwindSafe for CandidateCacheStats
impl Send for CandidateCacheStats
impl Sync for CandidateCacheStats
impl Unpin for CandidateCacheStats
impl UnwindSafe for CandidateCacheStats
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