[−][src]Struct cqrs::CompositeEntitySource
Combines an EventSource
and a SnapshotSource
of different types by reference
so that they can be used jointly as an EntitySource.
Methods
impl<'e, 's, A, E, ES, SS> CompositeEntitySource<'e, 's, A, E, ES, SS> where
A: Aggregate,
E: AggregateEvent<A>,
ES: EventSource<A, E> + 'e,
SS: SnapshotSource<A> + 's,
[src]
A: Aggregate,
E: AggregateEvent<A>,
ES: EventSource<A, E> + 'e,
SS: SnapshotSource<A> + 's,
pub fn with_event_source<'new_e, NewES>(
self,
event_source: &'new_e NewES
) -> CompositeEntitySource<'new_e, 's, A, E, NewES, SS> where
NewES: EventSource<A, E> + 'new_e,
[src]
self,
event_source: &'new_e NewES
) -> CompositeEntitySource<'new_e, 's, A, E, NewES, SS> where
NewES: EventSource<A, E> + 'new_e,
Attaches a specific event source.
pub fn with_snapshot_source<'new_s, NewSS>(
self,
snapshot_source: &'new_s NewSS
) -> CompositeEntitySource<'e, 'new_s, A, E, ES, NewSS> where
NewSS: SnapshotSource<A> + 'new_s,
[src]
self,
snapshot_source: &'new_s NewSS
) -> CompositeEntitySource<'e, 'new_s, A, E, ES, NewSS> where
NewSS: SnapshotSource<A> + 'new_s,
Attaches a specific snapshot source.
Trait Implementations
impl<'e, 's, A: Clone, E: Clone, ES: Clone, SS: Clone> Clone for CompositeEntitySource<'e, 's, A, E, ES, SS> where
A: Aggregate,
E: AggregateEvent<A>,
ES: EventSource<A, E> + 'e,
SS: SnapshotSource<A> + 's,
[src]
A: Aggregate,
E: AggregateEvent<A>,
ES: EventSource<A, E> + 'e,
SS: SnapshotSource<A> + 's,
fn clone(&self) -> CompositeEntitySource<'e, 's, A, E, ES, SS>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<A, E> Default for CompositeEntitySource<'static, 'static, A, E, NullEventStore<A, E>, NullSnapshotStore<A>> where
A: Aggregate,
E: AggregateEvent<A>,
[src]
A: Aggregate,
E: AggregateEvent<A>,
impl<'e, 's, A: PartialEq, E: PartialEq, ES: PartialEq, SS: PartialEq> PartialEq<CompositeEntitySource<'e, 's, A, E, ES, SS>> for CompositeEntitySource<'e, 's, A, E, ES, SS> where
A: Aggregate,
E: AggregateEvent<A>,
ES: EventSource<A, E> + 'e,
SS: SnapshotSource<A> + 's,
[src]
A: Aggregate,
E: AggregateEvent<A>,
ES: EventSource<A, E> + 'e,
SS: SnapshotSource<A> + 's,
fn eq(&self, other: &CompositeEntitySource<'e, 's, A, E, ES, SS>) -> bool
[src]
fn ne(&self, other: &CompositeEntitySource<'e, 's, A, E, ES, SS>) -> bool
[src]
impl<'e, 's, A: Copy, E: Copy, ES: Copy, SS: Copy> Copy for CompositeEntitySource<'e, 's, A, E, ES, SS> where
A: Aggregate,
E: AggregateEvent<A>,
ES: EventSource<A, E> + 'e,
SS: SnapshotSource<A> + 's,
[src]
A: Aggregate,
E: AggregateEvent<A>,
ES: EventSource<A, E> + 'e,
SS: SnapshotSource<A> + 's,
impl<'e, 's, A: Eq, E: Eq, ES: Eq, SS: Eq> Eq for CompositeEntitySource<'e, 's, A, E, ES, SS> where
A: Aggregate,
E: AggregateEvent<A>,
ES: EventSource<A, E> + 'e,
SS: SnapshotSource<A> + 's,
[src]
A: Aggregate,
E: AggregateEvent<A>,
ES: EventSource<A, E> + 'e,
SS: SnapshotSource<A> + 's,
impl<'e, 's, A: Debug, E: Debug, ES: Debug, SS: Debug> Debug for CompositeEntitySource<'e, 's, A, E, ES, SS> where
A: Aggregate,
E: AggregateEvent<A>,
ES: EventSource<A, E> + 'e,
SS: SnapshotSource<A> + 's,
[src]
A: Aggregate,
E: AggregateEvent<A>,
ES: EventSource<A, E> + 'e,
SS: SnapshotSource<A> + 's,
impl<'e, 's, A, E, ES, SS> EventSource<A, E> for CompositeEntitySource<'e, 's, A, E, ES, SS> where
A: Aggregate,
E: AggregateEvent<A>,
ES: EventSource<A, E> + 'e,
SS: SnapshotSource<A> + 's,
[src]
A: Aggregate,
E: AggregateEvent<A>,
ES: EventSource<A, E> + 'e,
SS: SnapshotSource<A> + 's,
type Error = ES::Error
The error type.
type Events = ES::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<'e, 's, A, E, ES, SS> SnapshotSource<A> for CompositeEntitySource<'e, 's, A, E, ES, SS> where
A: Aggregate,
E: AggregateEvent<A>,
ES: EventSource<A, E> + 'e,
SS: SnapshotSource<A> + 's,
[src]
A: Aggregate,
E: AggregateEvent<A>,
ES: EventSource<A, E> + 'e,
SS: SnapshotSource<A> + 's,
type Error = SS::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>,
Auto Trait Implementations
impl<'e, 's, A, E, ES, SS> Sync for CompositeEntitySource<'e, 's, A, E, ES, SS> where
A: Sync,
E: Sync,
ES: Sync,
SS: Sync,
A: Sync,
E: Sync,
ES: Sync,
SS: Sync,
impl<'e, 's, A, E, ES, SS> Send for CompositeEntitySource<'e, 's, A, E, ES, SS> where
A: Sync,
E: Sync,
ES: Sync,
SS: Sync,
A: Sync,
E: Sync,
ES: Sync,
SS: Sync,
impl<'e, 's, A, E, ES, SS> Unpin for CompositeEntitySource<'e, 's, A, E, ES, SS>
impl<'e, 's, A, E, ES, SS> RefUnwindSafe for CompositeEntitySource<'e, 's, A, E, ES, SS> where
A: RefUnwindSafe,
E: RefUnwindSafe,
ES: RefUnwindSafe,
SS: RefUnwindSafe,
A: RefUnwindSafe,
E: RefUnwindSafe,
ES: RefUnwindSafe,
SS: RefUnwindSafe,
impl<'e, 's, A, E, ES, SS> UnwindSafe for CompositeEntitySource<'e, 's, A, E, ES, SS> where
A: RefUnwindSafe,
E: RefUnwindSafe,
ES: RefUnwindSafe,
SS: RefUnwindSafe,
A: RefUnwindSafe,
E: RefUnwindSafe,
ES: RefUnwindSafe,
SS: RefUnwindSafe,
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,