pub struct CacheReport {
pub stats: CacheStatsSnapshot,
pub avg_bytes_per_hit: f64,
pub avg_bytes_per_write: f64,
pub bandwidth_savings_ratio: f64,
pub operations_per_second: f64,
pub bytes_per_second_saved: f64,
pub effectiveness_score: f64,
}Expand description
Detailed cache performance report
Fields§
§stats: CacheStatsSnapshotBasic statistics snapshot
avg_bytes_per_hit: f64Average bytes per hit
avg_bytes_per_write: f64Average bytes per write
bandwidth_savings_ratio: f64Bandwidth savings ratio (0.0 to 1.0)
operations_per_second: f64Operations per second
bytes_per_second_saved: f64Bytes per second served from cache
effectiveness_score: f64Cache effectiveness score (0.0 to 100.0)
Trait Implementations§
Source§impl Clone for CacheReport
impl Clone for CacheReport
Source§fn clone(&self) -> CacheReport
fn clone(&self) -> CacheReport
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 CacheReport
impl Debug for CacheReport
Source§impl<'de> Deserialize<'de> for CacheReport
impl<'de> Deserialize<'de> for CacheReport
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 Display for CacheReport
impl Display for CacheReport
Auto Trait Implementations§
impl Freeze for CacheReport
impl RefUnwindSafe for CacheReport
impl Send for CacheReport
impl Sync for CacheReport
impl Unpin for CacheReport
impl UnwindSafe for CacheReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.