Trait ppl::mpsc::channel::Sender

source ·
pub trait Sender<T> {
    // Required method
    fn send(&self, msg: T) -> Result<(), SenderError>;
}
Expand description

Trait defining a channel sender.

Required Methods§

source

fn send(&self, msg: T) -> Result<(), SenderError>

Send a message to the channel.

Implementors§