Struct cqrs_eventsourcing::CQRS[][src]

pub struct CQRS<A, E, ES> where
    A: Aggregate,
    E: DomainEvent<A>,
    ES: Store<A, E>, 
{ /* fields omitted */ }

Implementations

impl<A, E, ES> CQRS<A, E, ES> where
    A: Aggregate,
    E: DomainEvent<A>,
    ES: Store<A, E>, 
[src]

pub fn new(store: ES, handlers: Handlers<A, E>) -> CQRS<A, E, ES>[src]

pub async fn execute<C: Command<A, E>>(
    &mut self,
    command: C,
    meta: MetaData
) -> Result<(), Error>
[src]

Auto Trait Implementations

impl<A, E, ES> !RefUnwindSafe for CQRS<A, E, ES>

impl<A, E, ES> Send for CQRS<A, E, ES>

impl<A, E, ES> !Sync for CQRS<A, E, ES>

impl<A, E, ES> Unpin for CQRS<A, E, ES> where
    A: Unpin,
    E: Unpin,
    ES: Unpin

impl<A, E, ES> !UnwindSafe for CQRS<A, E, ES>

Blanket Implementations

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

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

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

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.