pub struct CacheHitRate {
pub hit_rate: f64,
pub sample_count: u32,
pub window_duration_secs: f64,
}Expand description
Aggregated cache hit rate over a time window.
Used for dashboard metrics and trend analysis.
Fields§
§hit_rate: f64Hit rate in the range [0.0, 1.0].
sample_count: u32Number of requests in the measurement window.
window_duration_secs: f64Duration of the measurement window in seconds.
Trait Implementations§
Source§impl Clone for CacheHitRate
impl Clone for CacheHitRate
Source§fn clone(&self) -> CacheHitRate
fn clone(&self) -> CacheHitRate
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 moreSource§impl Debug for CacheHitRate
impl Debug for CacheHitRate
Source§impl<'de> Deserialize<'de> for CacheHitRate
impl<'de> Deserialize<'de> for CacheHitRate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CacheHitRate
impl PartialEq for CacheHitRate
Source§fn eq(&self, other: &CacheHitRate) -> bool
fn eq(&self, other: &CacheHitRate) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CacheHitRate
impl Serialize for CacheHitRate
impl StructuralPartialEq for CacheHitRate
Auto Trait Implementations§
impl Freeze for CacheHitRate
impl RefUnwindSafe for CacheHitRate
impl Send for CacheHitRate
impl Sync for CacheHitRate
impl Unpin for CacheHitRate
impl UnsafeUnpin for CacheHitRate
impl UnwindSafe for CacheHitRate
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