pub struct CompactionStatistics {
pub total_messages: usize,
pub messages_by_priority: HashMap<MessagePriority, usize>,
pub total_memory_usage: usize,
pub average_message_size: usize,
pub last_compaction_timestamp: u64,
pub compaction_frequency: f64,
}
Expand description
Compaction statistics
Fields§
§total_messages: usize
Total messages in history
messages_by_priority: HashMap<MessagePriority, usize>
Messages by priority level
total_memory_usage: usize
Total memory usage (bytes)
average_message_size: usize
Average message size (bytes)
last_compaction_timestamp: u64
Last compaction timestamp
compaction_frequency: f64
Compaction frequency (operations per hour)
Trait Implementations§
Source§impl Clone for CompactionStatistics
impl Clone for CompactionStatistics
Source§fn clone(&self) -> CompactionStatistics
fn clone(&self) -> CompactionStatistics
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 CompactionStatistics
impl Debug for CompactionStatistics
Source§impl<'de> Deserialize<'de> for CompactionStatistics
impl<'de> Deserialize<'de> for CompactionStatistics
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
Auto Trait Implementations§
impl Freeze for CompactionStatistics
impl RefUnwindSafe for CompactionStatistics
impl Send for CompactionStatistics
impl Sync for CompactionStatistics
impl Unpin for CompactionStatistics
impl UnwindSafe for CompactionStatistics
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