pub struct CheckpointPlan {
pub mode: CheckpointMode,
pub frames_to_backfill: u32,
pub progress: CheckpointProgress,
pub blocked_by_readers: bool,
pub post_action: CheckpointPostAction,
}Expand description
Planned checkpoint actions for a single checkpoint decision.
Fields§
§mode: CheckpointModeCheckpoint mode used for this plan.
frames_to_backfill: u32Number of additional frames to backfill immediately.
progress: CheckpointProgressWhether frame backfill completes at plan end.
blocked_by_readers: boolWhether active readers prevent mode completion behavior right now.
post_action: CheckpointPostActionPost-backfill action requested by the mode.
Implementations§
Source§impl CheckpointPlan
impl CheckpointPlan
Sourcepub const fn completes_checkpoint(self) -> bool
pub const fn completes_checkpoint(self) -> bool
Whether this plan fully completes frame backfill.
Sourcepub const fn should_reset_wal(self) -> bool
pub const fn should_reset_wal(self) -> bool
Whether this plan requests a WAL reset.
Sourcepub const fn should_truncate_wal(self) -> bool
pub const fn should_truncate_wal(self) -> bool
Whether this plan requests WAL truncation.
Trait Implementations§
Source§impl Clone for CheckpointPlan
impl Clone for CheckpointPlan
Source§fn clone(&self) -> CheckpointPlan
fn clone(&self) -> CheckpointPlan
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 CheckpointPlan
Source§impl Debug for CheckpointPlan
impl Debug for CheckpointPlan
impl Eq for CheckpointPlan
Source§impl PartialEq for CheckpointPlan
impl PartialEq for CheckpointPlan
Source§fn eq(&self, other: &CheckpointPlan) -> bool
fn eq(&self, other: &CheckpointPlan) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CheckpointPlan
Auto Trait Implementations§
impl Freeze for CheckpointPlan
impl RefUnwindSafe for CheckpointPlan
impl Send for CheckpointPlan
impl Sync for CheckpointPlan
impl Unpin for CheckpointPlan
impl UnsafeUnpin for CheckpointPlan
impl UnwindSafe for CheckpointPlan
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§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: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).
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