pub trait IntoSender<M> {
// Required methods
fn into_sender(self) -> Sender<M>;
fn as_sender(self: &Arc<Self>) -> Sender<M>;
}
Expand description
Extension functions to wrap a CanSend as a Sender.
Required Methods§
Sourcefn into_sender(self) -> Sender<M>
fn into_sender(self) -> Sender<M>
This allows conversion of an owned CanSend into a Sender.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.