[−][src]Struct cqrs::CompositeEntityStore
Combines an EntitySource and an EntitySink into a single type so that they can be jointly used as an EntityStore.
Methods
impl<A, E, M, ES, SS> CompositeEntityStore<A, E, M, ES, SS> where
A: Aggregate,
E: AggregateEvent<A>,
ES: EntitySource<A, E>,
SS: EntitySink<A, E, M>,
[src]
A: Aggregate,
E: AggregateEvent<A>,
ES: EntitySource<A, E>,
SS: EntitySink<A, E, M>,
pub fn with_entity_source<NewES>(
self,
entity_source: NewES
) -> CompositeEntityStore<A, E, M, NewES, SS> where
NewES: EntitySource<A, E>,
[src]
self,
entity_source: NewES
) -> CompositeEntityStore<A, E, M, NewES, SS> where
NewES: EntitySource<A, E>,
Attaches a specific entity source.
pub fn with_entity_sink<NewSS>(
self,
entity_sink: NewSS
) -> CompositeEntityStore<A, E, M, ES, NewSS> where
NewSS: EntitySink<A, E, M>,
[src]
self,
entity_sink: NewSS
) -> CompositeEntityStore<A, E, M, ES, NewSS> where
NewSS: EntitySink<A, E, M>,
Attaches a specific entity sink.
Trait Implementations
impl<A: Clone, E: Clone, M: Clone, ES: Clone, SS: Clone> Clone for CompositeEntityStore<A, E, M, ES, SS> where
A: Aggregate,
E: AggregateEvent<A>,
ES: EntitySource<A, E>,
SS: EntitySink<A, E, M>,
[src]
A: Aggregate,
E: AggregateEvent<A>,
ES: EntitySource<A, E>,
SS: EntitySink<A, E, M>,
fn clone(&self) -> CompositeEntityStore<A, E, M, ES, SS>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<A, E, M> Default for CompositeEntityStore<A, E, M, CompositeEntitySource<'static, 'static, A, E, NullEventStore<A, E>, NullSnapshotStore<A>>, CompositeEntitySink<'static, 'static, A, E, M, NullEventStore<A, E>, NullSnapshotStore<A>>> where
A: Aggregate,
E: AggregateEvent<A>,
[src]
A: Aggregate,
E: AggregateEvent<A>,
impl<A: PartialEq, E: PartialEq, M: PartialEq, ES: PartialEq, SS: PartialEq> PartialEq<CompositeEntityStore<A, E, M, ES, SS>> for CompositeEntityStore<A, E, M, ES, SS> where
A: Aggregate,
E: AggregateEvent<A>,
ES: EntitySource<A, E>,
SS: EntitySink<A, E, M>,
[src]
A: Aggregate,
E: AggregateEvent<A>,
ES: EntitySource<A, E>,
SS: EntitySink<A, E, M>,
fn eq(&self, other: &CompositeEntityStore<A, E, M, ES, SS>) -> bool
[src]
fn ne(&self, other: &CompositeEntityStore<A, E, M, ES, SS>) -> bool
[src]
impl<A: Copy, E: Copy, M: Copy, ES: Copy, SS: Copy> Copy for CompositeEntityStore<A, E, M, ES, SS> where
A: Aggregate,
E: AggregateEvent<A>,
ES: EntitySource<A, E>,
SS: EntitySink<A, E, M>,
[src]
A: Aggregate,
E: AggregateEvent<A>,
ES: EntitySource<A, E>,
SS: EntitySink<A, E, M>,
impl<A: Eq, E: Eq, M: Eq, ES: Eq, SS: Eq> Eq for CompositeEntityStore<A, E, M, ES, SS> where
A: Aggregate,
E: AggregateEvent<A>,
ES: EntitySource<A, E>,
SS: EntitySink<A, E, M>,
[src]
A: Aggregate,
E: AggregateEvent<A>,
ES: EntitySource<A, E>,
SS: EntitySink<A, E, M>,
impl<A: Debug, E: Debug, M: Debug, ES: Debug, SS: Debug> Debug for CompositeEntityStore<A, E, M, ES, SS> where
A: Aggregate,
E: AggregateEvent<A>,
ES: EntitySource<A, E>,
SS: EntitySink<A, E, M>,
[src]
A: Aggregate,
E: AggregateEvent<A>,
ES: EntitySource<A, E>,
SS: EntitySink<A, E, M>,
impl<A, E, M, ES, SS> EventSource<A, E> for CompositeEntityStore<A, E, M, ES, SS> where
A: Aggregate,
E: AggregateEvent<A>,
ES: EntitySource<A, E>,
SS: EntitySink<A, E, M>,
[src]
A: Aggregate,
E: AggregateEvent<A>,
ES: EntitySource<A, E>,
SS: EntitySink<A, E, M>,
type Error = <ES as EventSource<A, E>>::Error
The error type.
type Events = <ES as EventSource<A, E>>::Events
Represents the sequence of events read from the event source.
fn read_events<I>(
&self,
id: &I,
since: Since,
max_count: Option<u64>
) -> Result<Option<Self::Events>, Self::Error> where
I: AggregateId<A>,
[src]
&self,
id: &I,
since: Since,
max_count: Option<u64>
) -> Result<Option<Self::Events>, Self::Error> where
I: AggregateId<A>,
impl<A, E, M, ES, SS> EventSink<A, E, M> for CompositeEntityStore<A, E, M, ES, SS> where
A: Aggregate,
E: AggregateEvent<A>,
ES: EntitySource<A, E>,
SS: EntitySink<A, E, M>,
[src]
A: Aggregate,
E: AggregateEvent<A>,
ES: EntitySource<A, E>,
SS: EntitySink<A, E, M>,
type Error = <SS as EventSink<A, E, M>>::Error
The error type.
fn append_events<I>(
&self,
id: &I,
events: &[E],
precondition: Option<Precondition>,
metadata: M
) -> Result<EventNumber, Self::Error> where
I: AggregateId<A>,
[src]
&self,
id: &I,
events: &[E],
precondition: Option<Precondition>,
metadata: M
) -> Result<EventNumber, Self::Error> where
I: AggregateId<A>,
impl<A, E, M, ES, SS> SnapshotSource<A> for CompositeEntityStore<A, E, M, ES, SS> where
A: Aggregate,
E: AggregateEvent<A>,
ES: EntitySource<A, E>,
SS: EntitySink<A, E, M>,
[src]
A: Aggregate,
E: AggregateEvent<A>,
ES: EntitySource<A, E>,
SS: EntitySink<A, E, M>,
type Error = <ES as SnapshotSource<A>>::Error
The error type.
fn get_snapshot<I>(
&self,
id: &I
) -> Result<Option<VersionedAggregate<A>>, Self::Error> where
I: AggregateId<A>,
[src]
&self,
id: &I
) -> Result<Option<VersionedAggregate<A>>, Self::Error> where
I: AggregateId<A>,
impl<A, E, M, ES, SS> SnapshotSink<A> for CompositeEntityStore<A, E, M, ES, SS> where
A: Aggregate,
E: AggregateEvent<A>,
ES: EntitySource<A, E>,
SS: EntitySink<A, E, M>,
[src]
A: Aggregate,
E: AggregateEvent<A>,
ES: EntitySource<A, E>,
SS: EntitySink<A, E, M>,
type Error = <SS as SnapshotSink<A>>::Error
The error type.
fn persist_snapshot<I>(
&self,
id: &I,
aggregate: &A,
version: Version,
last_snapshot_version: Option<Version>
) -> Result<Version, Self::Error> where
I: AggregateId<A>,
[src]
&self,
id: &I,
aggregate: &A,
version: Version,
last_snapshot_version: Option<Version>
) -> Result<Version, Self::Error> where
I: AggregateId<A>,
Auto Trait Implementations
impl<A, E, M, ES, SS> !Sync for CompositeEntityStore<A, E, M, ES, SS>
impl<A, E, M, ES, SS> !Send for CompositeEntityStore<A, E, M, ES, SS>
impl<A, E, M, ES, SS> Unpin for CompositeEntityStore<A, E, M, ES, SS> where
A: Unpin,
E: Unpin,
ES: Unpin,
M: Unpin,
SS: Unpin,
A: Unpin,
E: Unpin,
ES: Unpin,
M: Unpin,
SS: Unpin,
impl<A, E, M, ES, SS> RefUnwindSafe for CompositeEntityStore<A, E, M, ES, SS> where
A: RefUnwindSafe,
E: RefUnwindSafe,
ES: RefUnwindSafe,
M: RefUnwindSafe,
SS: RefUnwindSafe,
A: RefUnwindSafe,
E: RefUnwindSafe,
ES: RefUnwindSafe,
M: RefUnwindSafe,
SS: RefUnwindSafe,
impl<A, E, M, ES, SS> UnwindSafe for CompositeEntityStore<A, E, M, ES, SS> where
A: RefUnwindSafe,
E: RefUnwindSafe,
ES: UnwindSafe,
M: RefUnwindSafe,
SS: UnwindSafe,
A: RefUnwindSafe,
E: RefUnwindSafe,
ES: UnwindSafe,
M: RefUnwindSafe,
SS: UnwindSafe,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,