pub struct EventStoreImpl<A, P>where
A: Aggregate + 'static,
P: EventStoreStorage<A> + MaybeSend + MaybeSync + Clone + Debug + 'static,{ /* private fields */ }Implementations§
Trait Implementations§
Source§impl<A, P> Clone for EventStoreImpl<A, P>
impl<A, P> Clone for EventStoreImpl<A, P>
Source§fn clone(&self) -> EventStoreImpl<A, P>
fn clone(&self) -> EventStoreImpl<A, P>
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<A, P> Debug for EventStoreImpl<A, P>
impl<A, P> Debug for EventStoreImpl<A, P>
Source§impl<A, P> EventStore<A> for EventStoreImpl<A, P>
impl<A, P> EventStore<A> for EventStoreImpl<A, P>
fn load_snapshot<'life0, 'life1, 'async_trait>(
&'life0 self,
aggregate_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Snapshot<A>>, CqrsError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load_events_from_version<'life0, 'life1, 'async_trait>(
&'life0 self,
aggregate_id: &'life1 str,
version: usize,
) -> Pin<Box<dyn Future<Output = Result<EventStream<A>, CqrsError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load_events<'life0, 'life1, 'async_trait>(
&'life0 self,
aggregate_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<EventStream<A>, CqrsError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load_events_paged<'life0, 'life1, 'async_trait>(
&'life0 self,
aggregate_id: &'life1 str,
page: usize,
page_size: usize,
) -> Pin<Box<dyn Future<Output = Result<(Vec<EventEnvelope<A>>, i64), CqrsError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn commit<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
events: Vec<A::Event>,
aggregate: &'life1 A,
metadata: HashMap<String, String>,
version: usize,
context: &'life2 CqrsContext,
) -> Pin<Box<dyn Future<Output = Result<Vec<EventEnvelope<A>>, CqrsError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn initialize_aggregate<'life0, 'life1, 'async_trait>(
&'life0 self,
aggregate_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(A, usize), CqrsError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load_aggregate<'life0, 'life1, 'async_trait>(
&'life0 self,
aggregate_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(A, usize), CqrsError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl<A, P> Freeze for EventStoreImpl<A, P>where
P: Freeze,
impl<A, P> RefUnwindSafe for EventStoreImpl<A, P>where
P: RefUnwindSafe,
A: RefUnwindSafe,
impl<A, P> Send for EventStoreImpl<A, P>
impl<A, P> Sync for EventStoreImpl<A, P>
impl<A, P> Unpin for EventStoreImpl<A, P>
impl<A, P> UnsafeUnpin for EventStoreImpl<A, P>where
P: UnsafeUnpin,
impl<A, P> UnwindSafe for EventStoreImpl<A, P>where
P: UnwindSafe,
A: UnwindSafe,
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