Trait meio::handlers::InteractionDone[][src]

pub trait InteractionDone<I: Interaction, M: Tag>: Actor {
    #[must_use]
    fn handle<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        tag: M,
        output: I::Output,
        ctx: &'life1 mut Context<Self>
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; #[must_use] fn failed<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        _tag: M,
        err: TaskError,
        _ctx: &'life1 mut Context<Self>
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: Send + 'async_trait
, { ... } }

Independent interaction results listener. It necessary to avoid blocking.

Required methods

#[must_use]
fn handle<'life0, 'life1, 'async_trait>(
    &'life0 mut self,
    tag: M,
    output: I::Output,
    ctx: &'life1 mut Context<Self>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

Handling of the interaction result.

Loading content...

Provided methods

#[must_use]
fn failed<'life0, 'life1, 'async_trait>(
    &'life0 mut self,
    _tag: M,
    err: TaskError,
    _ctx: &'life1 mut Context<Self>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: Send + 'async_trait, 
[src]

Called when interaction failed.

Loading content...

Implementors

Loading content...