pub trait GenericSender<T> { // Required method fn send(&self, msg: T) -> Result<(), Box<dyn Error>>; }
Sends a message of type T.
T
This function will return an error if the message cannot be sent.