Trait meio::handlers::InteractionDone [−][src]
pub trait InteractionDone<I: Interaction, M: Tag>: Actor { 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; 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, { ... } }
Expand description
Independent interaction results listener. It necessary to avoid blocking.
Required methods
Handling of the interaction result.
Provided methods
Called when interaction failed.