pub trait MessageEndpoint {
    fn handle_message<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
        &'life0 self,
        handler: &'life1 MessageHandler,
        ctx: &'life2 MessagePayload<Message>,
        relay: &'life3 MessageRelay,
        data: &'life4 BackendMessage
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        'life4: 'async_trait
; }
Expand description

Message Endpoint trait

Required Methods§

handle_message

Implementors§