[][src]Struct cqrs::CompositeEntityStore

pub struct CompositeEntityStore<A, E, M, ES, SS> where
    A: Aggregate,
    E: AggregateEvent<A>,
    ES: EntitySource<A, E>,
    SS: EntitySink<A, E, M>, 
{ /* fields omitted */ }

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]

pub fn with_entity_source<NewES>(
    self,
    entity_source: NewES
) -> CompositeEntityStore<A, E, M, NewES, SS> where
    NewES: EntitySource<A, E>, 
[src]

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]

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]

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]

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]

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]

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]

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]

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]

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.

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]

type Error = <SS as EventSink<A, E, M>>::Error

The error type.

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]

type Error = <ES as SnapshotSource<A>>::Error

The error type.

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]

type Error = <SS as SnapshotSink<A>>::Error

The error type.

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

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

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

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]