Trait messagebus::LocalAsyncBatchHandler[][src]

pub trait LocalAsyncBatchHandler<M: Message> {
    type Error: StdSyncSendError + Clone;
    type Response: Message;
    type InBatch: FromIterator<M> + Send;
    type OutBatch: IntoIterator<Item = Self::Response> + Send;
    fn handle<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        msg: Self::InBatch,
        bus: &'life1 Bus
    ) -> Pin<Box<dyn Future<Output = Result<Self::OutBatch, 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: Send + 'async_trait
, { ... } }

Associated Types

Required methods

Provided methods

Implementors