pub trait Sender<T> {
// Required method
fn send(&self, msg: T) -> Result<(), SenderError>;
}
Expand description
Trait defining a channel sender.
Required Methods§
sourcefn send(&self, msg: T) -> Result<(), SenderError>
fn send(&self, msg: T) -> Result<(), SenderError>
Send a message to the channel.