[][src]Trait eventually::command::static::StaticHandler

pub trait StaticHandler {
    type Command;
    type Aggregate: Aggregate;
    type Error;
    fn handle<'life0, 'async_trait>(
        state: &'life0 AggregateState<Self::Aggregate>,
        command: Self::Command
    ) -> Pin<Box<dyn Future<Output = Result<Vec<AggregateEvent<Self::Aggregate>>, Self::Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn as_handler() -> AsHandler<Self>
    where
        Self: Sized
, { ... } }

Associated Types

Loading content...

Required methods

fn handle<'life0, 'async_trait>(
    state: &'life0 AggregateState<Self::Aggregate>,
    command: Self::Command
) -> Pin<Box<dyn Future<Output = Result<Vec<AggregateEvent<Self::Aggregate>>, Self::Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

Loading content...

Provided methods

fn as_handler() -> AsHandler<Self> where
    Self: Sized

Loading content...

Implementors

Loading content...