[][src]Struct cqrs::CompositeEntitySink

pub struct CompositeEntitySink<'e, 's, A, E, M, ES, SS> where
    A: Aggregate,
    E: AggregateEvent<A>,
    ES: EventSink<A, E, M> + 'e,
    SS: SnapshotSink<A> + 's, 
{ /* fields omitted */ }

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

type Error = ES::Error

The error type.

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]

type Error = SS::Error

The error type.

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

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

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

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

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]