pub struct MemoryStatistics {
pub total: usize,
pub manual: usize,
pub auto: usize,
pub by_category: HashMap<MemoryCategory, usize>,
pub avg_importance: f64,
pub oldest: Option<DateTime<Utc>>,
pub newest: Option<DateTime<Utc>>,
pub highly_referenced: usize,
}Expand description
Statistics about memory collection.
Fields§
§total: usizeTotal number of entries.
manual: usizeNumber of manually added entries.
auto: usizeNumber of automatically detected entries.
by_category: HashMap<MemoryCategory, usize>Count by category.
avg_importance: f64Average importance score.
oldest: Option<DateTime<Utc>>Oldest entry creation time.
newest: Option<DateTime<Utc>>Newest entry creation time.
highly_referenced: usizeNumber of entries with high reference count.
Implementations§
Source§impl MemoryStatistics
impl MemoryStatistics
Sourcepub fn format_summary(&self) -> String
pub fn format_summary(&self) -> String
Format statistics for display.
Trait Implementations§
Source§impl Clone for MemoryStatistics
impl Clone for MemoryStatistics
Source§fn clone(&self) -> MemoryStatistics
fn clone(&self) -> MemoryStatistics
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 moreAuto Trait Implementations§
impl Freeze for MemoryStatistics
impl RefUnwindSafe for MemoryStatistics
impl Send for MemoryStatistics
impl Sync for MemoryStatistics
impl Unpin for MemoryStatistics
impl UnsafeUnpin for MemoryStatistics
impl UnwindSafe for MemoryStatistics
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