pub trait MessageResponse<A, M>: Send{
// Required method
fn handle(
self,
ctx: &mut A::Context,
tx: Option<Sender<M::Result>>,
) -> impl Future<Output = ()> + Send;
}Expand description
Types that can be sent as a response to a message.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.