pub trait MessageResponse<M: Message>: Send {
    fn handle<'async_trait>(
        self,
        sender: Sender<M::Result>
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        Self: 'async_trait
; }
Available on crate feature worker only.
Expand description

Dev trait for Message responding

Required Methods§

Handles message

Implementors§