Trait messagebus::LocalBatchHandler [−][src]
pub trait LocalBatchHandler<M: Message> {
type Error: StdSyncSendError + Clone;
type Response: Message;
type InBatch: FromIterator<M> + Send;
type OutBatch: IntoIterator<Item = Self::Response> + Send;
fn handle(
&mut self,
msg: Self::InBatch,
bus: &Bus
) -> Result<Self::OutBatch, Self::Error>;
fn sync(&mut self, _bus: &Bus) -> Result<(), Self::Error> { ... }
}