pub struct InMemoryCheckpointSink { /* private fields */ }Expand description
In-memory checkpoint sink for tests and dry runs. Append-only.
Implementations§
Trait Implementations§
Source§impl CheckpointSink for InMemoryCheckpointSink
impl CheckpointSink for InMemoryCheckpointSink
Source§fn append<'life0, 'life1, 'async_trait>(
&'life0 self,
checkpoint: &'life1 Checkpoint,
) -> Pin<Box<dyn Future<Output = Result<(), CheckpointSinkError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn append<'life0, 'life1, 'async_trait>(
&'life0 self,
checkpoint: &'life1 Checkpoint,
) -> Pin<Box<dyn Future<Output = Result<(), CheckpointSinkError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Append one signed checkpoint. Must not overwrite prior checkpoints.
Source§impl Debug for InMemoryCheckpointSink
impl Debug for InMemoryCheckpointSink
Source§impl Default for InMemoryCheckpointSink
impl Default for InMemoryCheckpointSink
Source§fn default() -> InMemoryCheckpointSink
fn default() -> InMemoryCheckpointSink
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for InMemoryCheckpointSink
impl RefUnwindSafe for InMemoryCheckpointSink
impl Send for InMemoryCheckpointSink
impl Sync for InMemoryCheckpointSink
impl Unpin for InMemoryCheckpointSink
impl UnsafeUnpin for InMemoryCheckpointSink
impl UnwindSafe for InMemoryCheckpointSink
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> 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