pub struct CollapseStats {
pub messages_collapsed: usize,
pub bytes_saved: usize,
}Expand description
Aggregate statistics from a single collapse_repeats pass.
Fields§
§messages_collapsed: usizeNumber of messages that were replaced with a stub.
bytes_saved: usizeTotal bytes saved across all collapsed messages
(sum(original_len - stub_len)).
Implementations§
Source§impl CollapseStats
impl CollapseStats
Trait Implementations§
Source§impl Clone for CollapseStats
impl Clone for CollapseStats
Source§fn clone(&self) -> CollapseStats
fn clone(&self) -> CollapseStats
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 CollapseStats
impl Debug for CollapseStats
Source§impl Default for CollapseStats
impl Default for CollapseStats
Source§fn default() -> CollapseStats
fn default() -> CollapseStats
Returns the “default value” for a type. Read more
Source§impl PartialEq for CollapseStats
impl PartialEq for CollapseStats
Source§fn eq(&self, other: &CollapseStats) -> bool
fn eq(&self, other: &CollapseStats) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CollapseStats
impl StructuralPartialEq for CollapseStats
Auto Trait Implementations§
impl Freeze for CollapseStats
impl RefUnwindSafe for CollapseStats
impl Send for CollapseStats
impl Sync for CollapseStats
impl Unpin for CollapseStats
impl UnsafeUnpin for CollapseStats
impl UnwindSafe for CollapseStats
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