pub struct NoopCheckpointSink;Expand description
No-op sink used when no consumer is installed.
Public because ApplyConfig::with_checkpoint_sink
is generic and callers occasionally need to name the default.
Trait Implementations§
Source§impl CheckpointSink for NoopCheckpointSink
impl CheckpointSink for NoopCheckpointSink
Source§fn record(&mut self, _checkpoint: &Checkpoint) -> Result<()>
fn record(&mut self, _checkpoint: &Checkpoint) -> Result<()>
Persist or otherwise record
checkpoint. Called inline with the
apply loop at each emission site.Source§fn policy(&self) -> CheckpointPolicy
fn policy(&self) -> CheckpointPolicy
Policy the driver should honour after each successful
Self::record.
Default is CheckpointPolicy::Flush — strongest available without
the per-record fsync cost.Source§impl Clone for NoopCheckpointSink
impl Clone for NoopCheckpointSink
Source§fn clone(&self) -> NoopCheckpointSink
fn clone(&self) -> NoopCheckpointSink
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 moreSource§impl Debug for NoopCheckpointSink
impl Debug for NoopCheckpointSink
Source§impl Default for NoopCheckpointSink
impl Default for NoopCheckpointSink
Source§fn default() -> NoopCheckpointSink
fn default() -> NoopCheckpointSink
Returns the “default value” for a type. Read more
impl Copy for NoopCheckpointSink
Auto Trait Implementations§
impl Freeze for NoopCheckpointSink
impl RefUnwindSafe for NoopCheckpointSink
impl Send for NoopCheckpointSink
impl Sync for NoopCheckpointSink
impl Unpin for NoopCheckpointSink
impl UnsafeUnpin for NoopCheckpointSink
impl UnwindSafe for NoopCheckpointSink
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<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