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

Trait of message callback.

Required Methods§

Message handler for custom message

Message handler for builtin message

Implementors§