pub enum CheckpointTick {
Skipped,
Observed(u64),
}Expand description
Outcome of a single checkpoint attempt.
Skipped is returned when the writer mutex is already held (the tick is a
no-op). Observed carries the WAL page count read during the tick. The
distinction matters for threshold-crossing WARN rate-limiting: a skipped tick
must leave the above/below state unchanged so that a busy tick cannot
spuriously re-arm the rate limit while WAL pressure is still elevated.
Variants§
Skipped
The writer mutex was busy; no checkpoint was issued this tick.
Observed(u64)
A checkpoint was issued; the value is the observed WAL page count.
Trait Implementations§
Source§impl Clone for CheckpointTick
impl Clone for CheckpointTick
Source§fn clone(&self) -> CheckpointTick
fn clone(&self) -> CheckpointTick
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 CheckpointTick
Source§impl Debug for CheckpointTick
impl Debug for CheckpointTick
impl Eq for CheckpointTick
Source§impl PartialEq for CheckpointTick
impl PartialEq for CheckpointTick
impl StructuralPartialEq for CheckpointTick
Auto Trait Implementations§
impl Freeze for CheckpointTick
impl RefUnwindSafe for CheckpointTick
impl Send for CheckpointTick
impl Sync for CheckpointTick
impl Unpin for CheckpointTick
impl UnsafeUnpin for CheckpointTick
impl UnwindSafe for CheckpointTick
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§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