pub trait Sender<D: Data>: Sync + Send + Clone {
    // Required method
    fn send(&self, data: D, recipient: Recipient) -> Result<(), SendError>;
}
Expand description

For sending arbitrary messages.

Required Methods§

source

fn send(&self, data: D, recipient: Recipient) -> Result<(), SendError>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<D: Data> Sender<D> for UnboundedSender<(D, Recipient)>

source§

fn send(&self, data: D, recipient: Recipient) -> Result<(), SendError>

Implementors§

source§

impl<D: Data> Sender<D> for SessionSender<D>

source§

impl<D: Data, S: Sender<D>, IntoD: Data + Into<D>> Sender<IntoD> for MapSender<D, S>

source§

impl<LeftData: Data, RightData: Data, S: Sender<Split<LeftData, RightData>>, Conv: Convert<To = Split<LeftData, RightData>> + Clone + Send + Sync> Sender<<Conv as Convert>::From> for SplitSender<LeftData, RightData, S, Conv>
where <Conv as Convert>::From: Data, <Conv as Convert>::To: Data,