Struct meio::handlers::Interact [−][src]
pub struct Interact<T: Interaction> { pub request: T, pub responder: InteractionResponder<T::Output>, }
Expand description
The wrapper for an interaction request that keeps a request and the channel for sending a response.
Fields
request: T
Interaction request.
responder: InteractionResponder<T::Output>
The responder to send a result of an interaction.
Trait Implementations
impl<T, I> ActionHandler<Interact<I>> for T where
T: InteractionHandler<I>,
I: Interaction,
[src]
impl<T, I> ActionHandler<Interact<I>> for T where
T: InteractionHandler<I>,
I: Interaction,
[src]fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
input: Interact<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]
fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
input: Interact<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]Asyncronous method that receives incoming message.
impl<T: Interaction> Action for Interact<T>
[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for Interact<T>
impl<T> Send for Interact<T>
impl<T> Sync for Interact<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Interact<T> where
T: Unpin,
T: Unpin,