pub struct MemoryStats {
pub total_bytes: usize,
pub item_count: usize,
pub avg_item_size: usize,
pub oldest_timestamp: Option<DateTime<Utc>>,
pub newest_timestamp: Option<DateTime<Utc>>,
}Expand description
Memory statistics for compression decisions
Fields§
§total_bytes: usizeTotal size in bytes
item_count: usizeNumber of items
avg_item_size: usizeAverage item size
oldest_timestamp: Option<DateTime<Utc>>Oldest item timestamp
newest_timestamp: Option<DateTime<Utc>>Newest item timestamp
Trait Implementations§
Source§impl Clone for MemoryStats
impl Clone for MemoryStats
Source§fn clone(&self) -> MemoryStats
fn clone(&self) -> MemoryStats
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 MemoryStats
impl RefUnwindSafe for MemoryStats
impl Send for MemoryStats
impl Sync for MemoryStats
impl Unpin for MemoryStats
impl UnwindSafe for MemoryStats
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