pub struct StorageWalStats {
pub entry_count: usize,
pub data_bytes: u64,
pub checkpoint_count: usize,
pub next_sequence: u64,
pub oldest_sequence: Option<u64>,
}Expand description
Point-in-time statistics for a StorageWriteAheadLog.
Fields§
§entry_count: usizeNumber of entries currently in the log.
data_bytes: u64Total data bytes across all entries.
checkpoint_count: usizeNumber of checkpoints recorded.
next_sequence: u64The next sequence number that will be assigned.
oldest_sequence: Option<u64>Sequence number of the oldest entry, if any.
Trait Implementations§
Source§impl Clone for StorageWalStats
impl Clone for StorageWalStats
Source§fn clone(&self) -> StorageWalStats
fn clone(&self) -> StorageWalStats
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 moreAuto Trait Implementations§
impl Freeze for StorageWalStats
impl RefUnwindSafe for StorageWalStats
impl Send for StorageWalStats
impl Sync for StorageWalStats
impl Unpin for StorageWalStats
impl UnsafeUnpin for StorageWalStats
impl UnwindSafe for StorageWalStats
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more