pub struct InMemoryRunEventStore { /* private fields */ }Expand description
A process-local accepted-once event store useful for deterministic tests and hosts that already own their process lifetime.
Trait Implementations§
Source§impl Clone for InMemoryRunEventStore
impl Clone for InMemoryRunEventStore
Source§fn clone(&self) -> InMemoryRunEventStore
fn clone(&self) -> InMemoryRunEventStore
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 InMemoryRunEventStore
impl Debug for InMemoryRunEventStore
Source§impl Default for InMemoryRunEventStore
impl Default for InMemoryRunEventStore
Source§fn default() -> InMemoryRunEventStore
fn default() -> InMemoryRunEventStore
Returns the “default value” for a type. Read more
Source§impl IdempotentRunEventStore for InMemoryRunEventStore
impl IdempotentRunEventStore for InMemoryRunEventStore
fn append_once( &self, event_id: &str, payload_digest: &str, event: &Value, ) -> CheckpointResult<AppendOnceResult>
Source§impl RunEventStore for InMemoryRunEventStore
impl RunEventStore for InMemoryRunEventStore
fn append(&self, event: &RunEvent) -> Result<(), EventStoreError>
fn replay( &self, query: RunEventReplayQuery, ) -> Result<RunEventIter, EventStoreError>
fn append_once( &self, event_id: &str, payload_digest: &str, event: &RunEvent, ) -> Result<Option<EventCursor>, EventStoreError>
Auto Trait Implementations§
impl Freeze for InMemoryRunEventStore
impl RefUnwindSafe for InMemoryRunEventStore
impl Send for InMemoryRunEventStore
impl Sync for InMemoryRunEventStore
impl Unpin for InMemoryRunEventStore
impl UnsafeUnpin for InMemoryRunEventStore
impl UnwindSafe for InMemoryRunEventStore
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 moreCreates a shared type from an unshared type.