pub struct StatsSnapshot {
pub total_requests: u64,
pub hits: u64,
pub misses: u64,
pub stale_hits: u64,
pub stores: u64,
pub invalidations: u64,
pub hit_rate: f64,
pub miss_rate: f64,
pub uptime_seconds: u64,
}Expand description
Snapshot of current statistics.
Fields§
§total_requests: u64§hits: u64§misses: u64§stale_hits: u64§stores: u64§invalidations: u64§hit_rate: f64§miss_rate: f64§uptime_seconds: u64Trait Implementations§
Source§impl Clone for StatsSnapshot
impl Clone for StatsSnapshot
Source§fn clone(&self) -> StatsSnapshot
fn clone(&self) -> StatsSnapshot
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 StatsSnapshot
impl Debug for StatsSnapshot
Source§impl<'de> Deserialize<'de> for StatsSnapshot
impl<'de> Deserialize<'de> for StatsSnapshot
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
Auto Trait Implementations§
impl Freeze for StatsSnapshot
impl RefUnwindSafe for StatsSnapshot
impl Send for StatsSnapshot
impl Sync for StatsSnapshot
impl Unpin for StatsSnapshot
impl UnwindSafe for StatsSnapshot
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