pub trait MessageEndpoint {
    // Required method
    fn handle_message<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        ctx: &'life1 MessagePayload<Message>,
        data: &'life2 BackendMessage
    ) -> Pin<Box<dyn Future<Output = Result<Vec<MessageHandlerEvent>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Message Endpoint trait

Required Methods§

source

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

handle_message

Implementors§