pub struct CacheMetrics {
pub total_requests: u64,
pub l1_hits: u64,
pub l2_hits: u64,
pub misses: u64,
pub total_l1_time: Duration,
pub total_l2_time: Duration,
}Expand description
Performance metrics for cache operations
Fields§
§total_requests: u64§l1_hits: u64§l2_hits: u64§misses: u64§total_l1_time: Duration§total_l2_time: DurationImplementations§
Source§impl CacheMetrics
impl CacheMetrics
Trait Implementations§
Source§impl Clone for CacheMetrics
impl Clone for CacheMetrics
Source§fn clone(&self) -> CacheMetrics
fn clone(&self) -> CacheMetrics
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 CacheMetrics
impl Debug for CacheMetrics
Source§impl Default for CacheMetrics
impl Default for CacheMetrics
Source§fn default() -> CacheMetrics
fn default() -> CacheMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CacheMetrics
impl RefUnwindSafe for CacheMetrics
impl Send for CacheMetrics
impl Sync for CacheMetrics
impl Unpin for CacheMetrics
impl UnsafeUnpin for CacheMetrics
impl UnwindSafe for CacheMetrics
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