pub struct EventStore<Id, Event> { /* private fields */ }
Expand description
Redis backend implementation for eventually::EventStore
trait.
Trait Implementations§
Source§impl<Id: Clone, Event: Clone> Clone for EventStore<Id, Event>
impl<Id: Clone, Event: Clone> Clone for EventStore<Id, Event>
Source§fn clone(&self) -> EventStore<Id, Event>
fn clone(&self) -> EventStore<Id, Event>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<Id, Event> EventStore for EventStore<Id, Event>
impl<Id, Event> EventStore for EventStore<Id, Event>
Source§type SourceId = Id
type SourceId = Id
Type of the Source id, typically an
AggregateId
.Source§type Event = Event
type Event = Event
Event to be stored in the
EventStore
, typically an Aggregate::Event
.Source§type Error = StoreError
type Error = StoreError
Possible errors returned by the
EventStore
when requesting operations.Source§fn append(
&mut self,
id: Self::SourceId,
version: Expected,
events: Vec<Self::Event>,
) -> BoxFuture<'_, StoreResult<u32>>
fn append( &mut self, id: Self::SourceId, version: Expected, events: Vec<Self::Event>, ) -> BoxFuture<'_, StoreResult<u32>>
Source§fn stream(
&self,
id: Self::SourceId,
select: Select,
) -> BoxFuture<'_, StoreResult<StoreEventStream<'_, Self>>>
fn stream( &self, id: Self::SourceId, select: Select, ) -> BoxFuture<'_, StoreResult<StoreEventStream<'_, Self>>>
Source§fn stream_all(
&self,
select: Select,
) -> BoxFuture<'_, StoreResult<StoreEventStream<'_, Self>>>
fn stream_all( &self, select: Select, ) -> BoxFuture<'_, StoreResult<StoreEventStream<'_, Self>>>
Auto Trait Implementations§
impl<Id, Event> Freeze for EventStore<Id, Event>
impl<Id, Event> !RefUnwindSafe for EventStore<Id, Event>
impl<Id, Event> Send for EventStore<Id, Event>
impl<Id, Event> Sync for EventStore<Id, Event>
impl<Id, Event> Unpin for EventStore<Id, Event>
impl<Id, Event> !UnwindSafe for EventStore<Id, Event>
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