pub struct InMemoryEventStore { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Default for InMemoryEventStore
impl Default for InMemoryEventStore
Source§impl EventReader for InMemoryEventStore
impl EventReader for InMemoryEventStore
Source§type Error = EventStoreError
type Error = EventStoreError
Error type returned by read operations.
Source§async fn read_events<E: Event>(
&self,
filter: EventFilter,
page: EventPage,
) -> Result<Vec<(E, StreamPosition)>, Self::Error>
async fn read_events<E: Event>( &self, filter: EventFilter, page: EventPage, ) -> Result<Vec<(E, StreamPosition)>, Self::Error>
Read events matching filter criteria with pagination. Read more
Source§impl EventStore for InMemoryEventStore
impl EventStore for InMemoryEventStore
Source§async fn read_stream<E: Event>(
&self,
stream_id: StreamId,
) -> Result<EventStreamReader<E>, EventStoreError>
async fn read_stream<E: Event>( &self, stream_id: StreamId, ) -> Result<EventStreamReader<E>, EventStoreError>
Read all events from a stream. Read more
Source§async fn append_events(
&self,
writes: StreamWrites,
) -> Result<EventStreamSlice, EventStoreError>
async fn append_events( &self, writes: StreamWrites, ) -> Result<EventStreamSlice, EventStoreError>
Atomically append events to multiple streams with optimistic concurrency control. Read more
Auto Trait Implementations§
impl !Freeze for InMemoryEventStore
impl RefUnwindSafe for InMemoryEventStore
impl Send for InMemoryEventStore
impl Sync for InMemoryEventStore
impl Unpin for InMemoryEventStore
impl UnwindSafe for InMemoryEventStore
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