pub trait MessageListener {
    fn listen<'async_trait>(
        self: Arc<Self>
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait, Global>>
    where
        Self: 'async_trait
; }
Expand description

MessageListener trait implement listen method, use for MessageHandler and wait message.

Required Methods§

Implementors§