Trait meio::handlers::ActionHandler [−][src]
Type of Handler
to process incoming messages in one-shot style.
Required methods
#[must_use]fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
input: I,
_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]
&'life0 mut self,
input: I,
_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,
Asyncronous method that receives incoming message.
Implementors
impl<T> ActionHandler<Tick> for T where
T: OnTick,
[src]
T: OnTick,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
tick: Tick,
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]
&'life0 mut self,
tick: Tick,
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,
impl<T, I> ActionHandler<Interact<I>> for T where
T: InteractionHandler<I>,
I: Interaction,
[src]
T: InteractionHandler<I>,
I: Interaction,