pub trait CanSend<M>:
Send
+ Sync
+ 'static {
// Required method
fn send(&self, message: M);
}Expand description
Trait for sending a typed message. The sent message is then handled by the Handler trait.
See Handler<M> trait for more details.
Required Methods§
Implementations on Foreign Types§
Implementors§
impl<A, M> CanSend<M> for MultithreadRuntimeHandle<A>
impl<A, M> CanSend<M> for TokioRuntimeHandle<A>
impl<M> CanSend<M> for Noop
impl<M, A> CanSend<M> for TestLoopSender<A>
impl<M, S: CanSend<M>> CanSend<M> for LateBoundSender<S>
Allows LateBoundSender to be convertible to a Sender as long as the inner object could be.