pub trait MessageCallback {
    // Required methods
    fn custom_message<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        ctx: &'life1 MessagePayload<Message>,
        msg: &'life2 CustomMessage
    ) -> Pin<Box<dyn Future<Output = Vec<MessageHandlerEvent, Global>> + Send + 'async_trait, Global>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             Self: 'async_trait;
    fn builtin_message<'life0, 'life1, 'async_trait>(
        &'life0 self,
        ctx: &'life1 MessagePayload<Message>
    ) -> Pin<Box<dyn Future<Output = Vec<MessageHandlerEvent, Global>> + Send + 'async_trait, Global>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             Self: 'async_trait;
}
Expand description

Trait of message callback.

Required Methods§

source

fn custom_message<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, ctx: &'life1 MessagePayload<Message>, msg: &'life2 CustomMessage ) -> Pin<Box<dyn Future<Output = Vec<MessageHandlerEvent, Global>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: 'async_trait,

Message handler for custom message

source

fn builtin_message<'life0, 'life1, 'async_trait>( &'life0 self, ctx: &'life1 MessagePayload<Message> ) -> Pin<Box<dyn Future<Output = Vec<MessageHandlerEvent, Global>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Message handler for builtin message

Implementors§