Trait GenericSender

Source
pub trait GenericSender<T> {
    // Required method
    fn send(&self, msg: T) -> Result<(), Box<dyn Error>>;
}

Required Methods§

Source

fn send(&self, msg: T) -> Result<(), Box<dyn Error>>

Sends a message of type T.

§Errors

This function will return an error if the message cannot be sent.

Implementations on Foreign Types§

Source§

impl<T> GenericSender<T> for Sender<T>
where T: Send + 'static,

Source§

fn send(&self, msg: T) -> Result<(), Box<dyn Error>>

Implementors§