pub struct SystemStats {
pub total_items: usize,
pub hot_items: usize,
pub cold_items: usize,
pub avg_importance: f32,
pub avg_freq: u64,
pub metrics_snapshot: HashMap<String, u64>,
}Expand description
系统统计快照
Fields§
§total_items: usize§hot_items: usize§cold_items: usize§avg_importance: f32§avg_freq: u64§metrics_snapshot: HashMap<String, u64>Trait Implementations§
Source§impl Clone for SystemStats
impl Clone for SystemStats
Source§fn clone(&self) -> SystemStats
fn clone(&self) -> SystemStats
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 SystemStats
impl Debug for SystemStats
Auto Trait Implementations§
impl Freeze for SystemStats
impl RefUnwindSafe for SystemStats
impl Send for SystemStats
impl Sync for SystemStats
impl Unpin for SystemStats
impl UnsafeUnpin for SystemStats
impl UnwindSafe for SystemStats
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