TryEventApplicator

Trait TryEventApplicator 

Source
pub trait TryEventApplicator<E: Event>:
    'static
    + Sync
    + Send {
    type Rejection: 'static + Sync + Send;

    // Required method
    fn try_apply<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        event: E,
        ctx: &'life1 mut Context,
    ) -> Pin<Box<dyn Future<Output = Result<(), Self::Rejection>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Associated Types§

Source

type Rejection: 'static + Sync + Send

Required Methods§

Source

fn try_apply<'life0, 'life1, 'async_trait>( &'life0 mut self, event: E, ctx: &'life1 mut Context, ) -> Pin<Box<dyn Future<Output = Result<(), Self::Rejection>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§