pub struct HistoryCacheSnapshot {
pub len: usize,
pub evicted: u64,
pub max_sn: Option<SequenceNumber>,
pub min_sn: Option<SequenceNumber>,
}Expand description
Plain-old-data snapshot of the HistoryCache statistics at a
single point in time. Produced by HistoryCacheStats::snapshot;
each component is loaded with Acquire ordering.
Fields§
§len: usizeNumber of changes.
evicted: u64Number of samples discarded by KeepLast eviction.
max_sn: Option<SequenceNumber>Highest SN, if present.
min_sn: Option<SequenceNumber>Lowest SN, if present.
Trait Implementations§
Source§impl Clone for HistoryCacheSnapshot
impl Clone for HistoryCacheSnapshot
Source§fn clone(&self) -> HistoryCacheSnapshot
fn clone(&self) -> HistoryCacheSnapshot
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 moreimpl Copy for HistoryCacheSnapshot
Source§impl Debug for HistoryCacheSnapshot
impl Debug for HistoryCacheSnapshot
impl Eq for HistoryCacheSnapshot
Source§impl PartialEq for HistoryCacheSnapshot
impl PartialEq for HistoryCacheSnapshot
Source§fn eq(&self, other: &HistoryCacheSnapshot) -> bool
fn eq(&self, other: &HistoryCacheSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HistoryCacheSnapshot
Auto Trait Implementations§
impl Freeze for HistoryCacheSnapshot
impl RefUnwindSafe for HistoryCacheSnapshot
impl Send for HistoryCacheSnapshot
impl Sync for HistoryCacheSnapshot
impl Unpin for HistoryCacheSnapshot
impl UnsafeUnpin for HistoryCacheSnapshot
impl UnwindSafe for HistoryCacheSnapshot
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