[−][src]Struct cqrs::CompositeEntitySink
Combines an EventSink
and a SnapshotSink
of different types by reference
so that they can be used jointly as an EntitySink.
Methods
impl<'e, 's, A, E, M, ES, SS> CompositeEntitySink<'e, 's, A, E, M, ES, SS> where
A: Aggregate,
E: AggregateEvent<A>,
ES: EventSink<A, E, M> + 'e,
SS: SnapshotSink<A> + 's,
[src]
A: Aggregate,
E: AggregateEvent<A>,
ES: EventSink<A, E, M> + 'e,
SS: SnapshotSink<A> + 's,
pub fn with_event_sink<'new_e, NewES>(
self,
event_sink: &'new_e NewES
) -> CompositeEntitySink<'new_e, 's, A, E, M, NewES, SS> where
NewES: EventSink<A, E, M> + 'new_e,
[src]
self,
event_sink: &'new_e NewES
) -> CompositeEntitySink<'new_e, 's, A, E, M, NewES, SS> where
NewES: EventSink<A, E, M> + 'new_e,
Attaches a specific event sink.
pub fn with_snapshot_sink<'new_s, NewSS>(
self,
snapshot_sink: &'new_s NewSS
) -> CompositeEntitySink<'e, 'new_s, A, E, M, ES, NewSS> where
NewSS: SnapshotSink<A> + 'new_s,
[src]
self,
snapshot_sink: &'new_s NewSS
) -> CompositeEntitySink<'e, 'new_s, A, E, M, ES, NewSS> where
NewSS: SnapshotSink<A> + 'new_s,
Attaches a specific snapshot sink.
Trait Implementations
impl<'e, 's, A: Clone, E: Clone, M: Clone, ES: Clone, SS: Clone> Clone for CompositeEntitySink<'e, 's, A, E, M, ES, SS> where
A: Aggregate,
E: AggregateEvent<A>,
ES: EventSink<A, E, M> + 'e,
SS: SnapshotSink<A> + 's,
[src]
A: Aggregate,
E: AggregateEvent<A>,
ES: EventSink<A, E, M> + 'e,
SS: SnapshotSink<A> + 's,
fn clone(&self) -> CompositeEntitySink<'e, 's, 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 CompositeEntitySink<'static, 'static, A, E, M, NullEventStore<A, E>, NullSnapshotStore<A>> where
A: Aggregate,
E: AggregateEvent<A>,
[src]
A: Aggregate,
E: AggregateEvent<A>,
impl<'e, 's, A: PartialEq, E: PartialEq, M: PartialEq, ES: PartialEq, SS: PartialEq> PartialEq<CompositeEntitySink<'e, 's, A, E, M, ES, SS>> for CompositeEntitySink<'e, 's, A, E, M, ES, SS> where
A: Aggregate,
E: AggregateEvent<A>,
ES: EventSink<A, E, M> + 'e,
SS: SnapshotSink<A> + 's,
[src]
A: Aggregate,
E: AggregateEvent<A>,
ES: EventSink<A, E, M> + 'e,
SS: SnapshotSink<A> + 's,
fn eq(&self, other: &CompositeEntitySink<'e, 's, A, E, M, ES, SS>) -> bool
[src]
fn ne(&self, other: &CompositeEntitySink<'e, 's, A, E, M, ES, SS>) -> bool
[src]
impl<'e, 's, A: Copy, E: Copy, M: Copy, ES: Copy, SS: Copy> Copy for CompositeEntitySink<'e, 's, A, E, M, ES, SS> where
A: Aggregate,
E: AggregateEvent<A>,
ES: EventSink<A, E, M> + 'e,
SS: SnapshotSink<A> + 's,
[src]
A: Aggregate,
E: AggregateEvent<A>,
ES: EventSink<A, E, M> + 'e,
SS: SnapshotSink<A> + 's,
impl<'e, 's, A: Eq, E: Eq, M: Eq, ES: Eq, SS: Eq> Eq for CompositeEntitySink<'e, 's, A, E, M, ES, SS> where
A: Aggregate,
E: AggregateEvent<A>,
ES: EventSink<A, E, M> + 'e,
SS: SnapshotSink<A> + 's,
[src]
A: Aggregate,
E: AggregateEvent<A>,
ES: EventSink<A, E, M> + 'e,
SS: SnapshotSink<A> + 's,
impl<'e, 's, A: Debug, E: Debug, M: Debug, ES: Debug, SS: Debug> Debug for CompositeEntitySink<'e, 's, A, E, M, ES, SS> where
A: Aggregate,
E: AggregateEvent<A>,
ES: EventSink<A, E, M> + 'e,
SS: SnapshotSink<A> + 's,
[src]
A: Aggregate,
E: AggregateEvent<A>,
ES: EventSink<A, E, M> + 'e,
SS: SnapshotSink<A> + 's,
impl<'e, 's, A, E, M, ES, SS> EventSink<A, E, M> for CompositeEntitySink<'e, 's, A, E, M, ES, SS> where
A: Aggregate,
E: AggregateEvent<A>,
ES: EventSink<A, E, M> + 'e,
SS: SnapshotSink<A> + 's,
[src]
A: Aggregate,
E: AggregateEvent<A>,
ES: EventSink<A, E, M> + 'e,
SS: SnapshotSink<A> + 's,
type Error = ES::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<'e, 's, A, E, M, ES, SS> SnapshotSink<A> for CompositeEntitySink<'e, 's, A, E, M, ES, SS> where
A: Aggregate,
E: AggregateEvent<A>,
ES: EventSink<A, E, M> + 'e,
SS: SnapshotSink<A> + 's,
[src]
A: Aggregate,
E: AggregateEvent<A>,
ES: EventSink<A, E, M> + 'e,
SS: SnapshotSink<A> + 's,
Auto Trait Implementations
impl<'e, 's, A, E, M, ES, SS> Sync for CompositeEntitySink<'e, 's, A, E, M, ES, SS> where
A: Sync,
E: Sync,
ES: Sync,
M: Sync,
SS: Sync,
A: Sync,
E: Sync,
ES: Sync,
M: Sync,
SS: Sync,
impl<'e, 's, A, E, M, ES, SS> Send for CompositeEntitySink<'e, 's, A, E, M, ES, SS> where
A: Sync,
E: Sync,
ES: Sync,
M: Sync,
SS: Sync,
A: Sync,
E: Sync,
ES: Sync,
M: Sync,
SS: Sync,
impl<'e, 's, A, E, M, ES, SS> Unpin for CompositeEntitySink<'e, 's, A, E, M, ES, SS>
impl<'e, 's, A, E, M, ES, SS> RefUnwindSafe for CompositeEntitySink<'e, 's, 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<'e, 's, A, E, M, ES, SS> UnwindSafe for CompositeEntitySink<'e, 's, 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,
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,