pub struct HybridStatsSnapshot {
pub hot_objects: usize,
pub hot_size_bytes: u64,
pub hot_hits: u64,
pub hot_misses: u64,
pub promotions: u64,
pub demotions: u64,
pub cache_stats: CacheStats,
}Expand description
Snapshot of hybrid storage statistics.
Fields§
§hot_objects: usize§hot_size_bytes: u64§hot_hits: u64§hot_misses: u64§promotions: u64§demotions: u64§cache_stats: CacheStatsImplementations§
Source§impl HybridStatsSnapshot
impl HybridStatsSnapshot
Sourcepub fn hot_hit_ratio(&self) -> f64
pub fn hot_hit_ratio(&self) -> f64
Returns the hot storage hit ratio.
Trait Implementations§
Source§impl Clone for HybridStatsSnapshot
impl Clone for HybridStatsSnapshot
Source§fn clone(&self) -> HybridStatsSnapshot
fn clone(&self) -> HybridStatsSnapshot
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 moreAuto Trait Implementations§
impl Freeze for HybridStatsSnapshot
impl RefUnwindSafe for HybridStatsSnapshot
impl Send for HybridStatsSnapshot
impl Sync for HybridStatsSnapshot
impl Unpin for HybridStatsSnapshot
impl UnwindSafe for HybridStatsSnapshot
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