pub struct InMemoryEventStore { /* private fields */ }Available on crate feature
events only.Expand description
In-memory event store for testing
Implementations§
Trait Implementations§
Source§impl Debug for InMemoryEventStore
impl Debug for InMemoryEventStore
Source§impl EventStore for InMemoryEventStore
impl EventStore for InMemoryEventStore
Source§fn get_events_since(
&self,
sequence: u64,
limit: u32,
) -> Result<Vec<(u64, CommerceEvent)>>
fn get_events_since( &self, sequence: u64, limit: u32, ) -> Result<Vec<(u64, CommerceEvent)>>
Get events since sequence number
Source§fn get_events_for_aggregate(
&self,
aggregate_type: &str,
aggregate_id: &str,
) -> Result<Vec<CommerceEvent>>
fn get_events_for_aggregate( &self, aggregate_type: &str, aggregate_id: &str, ) -> Result<Vec<CommerceEvent>>
Get events for aggregate
Source§fn latest_sequence(&self) -> Result<u64>
fn latest_sequence(&self) -> Result<u64>
Get latest sequence number
Auto Trait Implementations§
impl !Freeze for InMemoryEventStore
impl RefUnwindSafe for InMemoryEventStore
impl Send for InMemoryEventStore
impl Sync for InMemoryEventStore
impl Unpin for InMemoryEventStore
impl UnsafeUnpin 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