pub trait AsyncHandler<M: Message> {
// Required method
fn deliver_async(&mut self, m: M) -> impl Future<Output = M::Reply> + '_;
}Required Methods§
fn deliver_async(&mut self, m: M) -> impl Future<Output = M::Reply> + '_
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl<M: Message, S: AsyncHandler<M>> AsyncHandler<Vec<M>> for S
Blanket implementation of delivering a Vec<Message> to an AsyncHandler<Message>.