CanSend

Trait CanSend 

Source
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§

Source

fn send(&self, message: M)

Implementations on Foreign Types§

Source§

impl<M> CanSend<M> for Arc<Noop>

Source§

fn send(&self, _message: M)

Implementors§

Source§

impl<A, M> CanSend<M> for MultithreadRuntimeHandle<A>
where A: Handler<M> + 'static, M: Debug + Send + 'static,

Source§

impl<A, M> CanSend<M> for TokioRuntimeHandle<A>
where A: HandlerWithContext<M> + 'static, M: Debug + Send + 'static,

Source§

impl<M> CanSend<M> for Noop

Source§

impl<M, A> CanSend<M> for TestLoopSender<A>
where M: Debug + Send + 'static, A: Actor + HandlerWithContext<M> + 'static,

Source§

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.