Struct eventually::event::store::InMemory
source · pub struct InMemory<Id, Evt>where
Evt: Message,{ /* private fields */ }
Expand description
In-memory implementation of event::Store
trait,
backed by a thread-safe std::collections::HashMap
.
Trait Implementations§
source§impl<Id, Evt> Appender<Id, Evt> for InMemory<Id, Evt>
impl<Id, Evt> Appender<Id, Evt> for InMemory<Id, Evt>
source§fn append<'life0, 'async_trait>(
&'life0 self,
id: Id,
version_check: Check,
events: Vec<Envelope<Evt>>
) -> Pin<Box<dyn Future<Output = Result<Version, AppendError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn append<'life0, 'async_trait>(
&'life0 self,
id: Id,
version_check: Check,
events: Vec<Envelope<Evt>>
) -> Pin<Box<dyn Future<Output = Result<Version, AppendError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Appens new Domain Events to the specified Event Stream. Read more
Auto Trait Implementations§
impl<Id, Evt> RefUnwindSafe for InMemory<Id, Evt>
impl<Id, Evt> Send for InMemory<Id, Evt>
impl<Id, Evt> Sync for InMemory<Id, Evt>
impl<Id, Evt> Unpin for InMemory<Id, Evt>
impl<Id, Evt> UnwindSafe for InMemory<Id, Evt>
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, StreamId, Event> EventStoreExt<StreamId, Event> for T
impl<T, StreamId, Event> EventStoreExt<StreamId, Event> for T
source§fn with_tracing(self) -> InstrumentedEventStore<Self, StreamId, Event>
fn with_tracing(self) -> InstrumentedEventStore<Self, StreamId, Event>
Returns an instrumented version of the
event::Store
instance.source§impl<T, StreamId, Event> EventStoreExt<StreamId, Event> for T
impl<T, StreamId, Event> EventStoreExt<StreamId, Event> for T
source§fn with_recorded_events_tracking(self) -> Tracking<Self, StreamId, Event>
fn with_recorded_events_tracking(self) -> Tracking<Self, StreamId, Event>
Returns a
Tracking
instance that decorates the original event::Store
instanca this method has been called on.