pub struct VolatileStats {
pub entries: usize,
pub total_bytes: usize,
pub capacity: usize,
pub max_total_bytes: Option<usize>,
}Expand description
Snapshot describing utilisation of the volatile buffer.
Fields§
§entries: usizeEntries currently stored in the buffer.
total_bytes: usizeAccumulated payload bytes currently retained.
capacity: usizeMaximum number of entries permitted.
max_total_bytes: Option<usize>Optional total byte limit when configured.
Trait Implementations§
Source§impl Clone for VolatileStats
impl Clone for VolatileStats
Source§fn clone(&self) -> VolatileStats
fn clone(&self) -> VolatileStats
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 VolatileStats
impl Debug for VolatileStats
Source§impl PartialEq for VolatileStats
impl PartialEq for VolatileStats
impl Copy for VolatileStats
impl Eq for VolatileStats
impl StructuralPartialEq for VolatileStats
Auto Trait Implementations§
impl Freeze for VolatileStats
impl RefUnwindSafe for VolatileStats
impl Send for VolatileStats
impl Sync for VolatileStats
impl Unpin for VolatileStats
impl UnwindSafe for VolatileStats
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