[][src]Trait eventmill::command::HandleCommand

pub trait HandleCommand<C, A> where
    A: WithAggregateId
{ type Event; type Error: Error; type Context; fn handle_command(
        &self,
        command: C,
        context: &Self::Context
    ) -> Result<Vec<NewEvent<Self::Event, A>>, Self::Error>; }

Associated Types

type Event

type Error: Error

type Context

Loading content...

Required methods

fn handle_command(
    &self,
    command: C,
    context: &Self::Context
) -> Result<Vec<NewEvent<Self::Event, A>>, Self::Error>

Loading content...

Implementors

impl<C, S> HandleCommand<C, VersionedAggregate<S>> for VersionedAggregate<S> where
    S: HandleCommand<C, S>,
    S: WithAggregateId
[src]

type Event = <S as HandleCommand<C, S>>::Event

type Error = <S as HandleCommand<C, S>>::Error

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

Loading content...