Trait messagebus::AsyncSynchronizedHandler[][src]

pub trait AsyncSynchronizedHandler<M: Message>: Send {
    type Error: StdSyncSendError;
    type Response: Message;
    fn handle<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        msg: M,
        bus: &'life1 Bus
    ) -> Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; fn sync<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        _bus: &'life1 Bus
    ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
, { ... } }

Associated Types

Required methods

Provided methods

Implementors