[−][src]Trait eventmill::dispatch::DispatchCommand
Associated Types
Loading content...Required methods
fn dispatch_command(
&self,
command: C,
context: &Self::Context
) -> Result<Self::Output, Self::Error>
&self,
command: C,
context: &Self::Context
) -> Result<Self::Output, Self::Error>
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]
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>>,
type Context = <A as HandleCommand<C, A>>::Context
type Output = VersionedAggregate<A>
type Error = CoreDispatchError<S, C, A>
fn dispatch_command(
&self,
DomainCommand { aggregate_id: aggregate_id, aggregate_generation: aggregate_generation, data: data }: DomainCommand<C, A>,
context: &Self::Context
) -> Result<Self::Output, Self::Error>
[src]
&self,
DomainCommand { aggregate_id: aggregate_id, aggregate_generation: aggregate_generation, data: data }: DomainCommand<C, A>,
context: &Self::Context
) -> Result<Self::Output, Self::Error>