[][src]Trait eventmill::dispatch::DispatchCommand

pub trait DispatchCommand<C, A> {
    type Context;
    type Output;
    type Error: Error;
    fn dispatch_command(
        &self,
        command: C,
        context: &Self::Context
    ) -> Result<Self::Output, Self::Error>; }

Associated Types

type Context

type Output

type Error: Error

Loading content...

Required methods

fn dispatch_command(
    &self,
    command: C,
    context: &Self::Context
) -> Result<Self::Output, Self::Error>

Loading content...

Implementors

impl<C, A, S> DispatchCommand<DomainCommand<C, A>, A> for Core<S> where
    A: Aggregate<<A as HandleCommand<C, A>>::Event> + AggregateType + WithAggregateId + HandleCommand<C, A> + InitializeAggregate<State = A>,
    <A as HandleCommand<C, A>>::Event: 'static + EventType,
    S: EventSource<<VersionedAggregate<A> as HandleCommand<C, VersionedAggregate<A>>>::Event, VersionedAggregate<A>> + EventSink<<VersionedAggregate<A> as HandleCommand<C, VersionedAggregate<A>>>::Event, VersionedAggregate<A>>, 
[src]

type Context = <A as HandleCommand<C, A>>::Context

type Output = VersionedAggregate<A>

type Error = CoreDispatchError<S, C, A>

Loading content...