pub trait CanSendAsync<M, R>:
Send
+ Sync
+ 'static {
// Required method
fn send_async(
&self,
message: M,
) -> BoxFuture<'static, Result<R, AsyncSendError>>;
}Expand description
Trait for sending a typed message async. The sent message is then handled by the Handler trait.
See Handler<M, R> trait for more details.