[][src]Trait eventually::aggregate::optional::OptionalAggregate

pub trait OptionalAggregate {
    type State;
    type Event;
    type Error;
    fn initial(event: Self::Event) -> Result<Self::State, Self::Error>;
fn apply_next(
        state: Self::State,
        event: Self::Event
    ) -> Result<Self::State, Self::Error>; }

Associated Types

type State

type Event

type Error

Loading content...

Required methods

fn initial(event: Self::Event) -> Result<Self::State, Self::Error>

fn apply_next(
    state: Self::State,
    event: Self::Event
) -> Result<Self::State, Self::Error>

Loading content...

Implementors

Loading content...