pub struct CheckpointCounters {
pub last_observed_wal_pages: Option<u64>,
pub truncate_attempts: u64,
pub truncate_consecutive_failures: u64,
pub checkpoint_skipped_ticks: u64,
pub checkpoint_consecutive_skips: u64,
pub checkpoint_last_skip_wal_pages: Option<u64>,
}Expand description
The six ADR-091 checkpoint counters, read as one snapshot.
The two Option fields carry the u64::MAX “never observed” sentinel as
None, so a caller serializing this never sees 18446744073709551615
where it means “no observation yet”.
Fields§
§last_observed_wal_pages: Option<u64>§truncate_attempts: u64§truncate_consecutive_failures: u64§checkpoint_skipped_ticks: u64§checkpoint_consecutive_skips: u64§checkpoint_last_skip_wal_pages: Option<u64>Trait Implementations§
Source§impl Clone for CheckpointCounters
impl Clone for CheckpointCounters
Source§fn clone(&self) -> CheckpointCounters
fn clone(&self) -> CheckpointCounters
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 CheckpointCounters
Source§impl Debug for CheckpointCounters
impl Debug for CheckpointCounters
impl Eq for CheckpointCounters
Source§impl PartialEq for CheckpointCounters
impl PartialEq for CheckpointCounters
Source§impl Serialize for CheckpointCounters
impl Serialize for CheckpointCounters
impl StructuralPartialEq for CheckpointCounters
Auto Trait Implementations§
impl Freeze for CheckpointCounters
impl RefUnwindSafe for CheckpointCounters
impl Send for CheckpointCounters
impl Sync for CheckpointCounters
impl Unpin for CheckpointCounters
impl UnsafeUnpin for CheckpointCounters
impl UnwindSafe for CheckpointCounters
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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