Trait near_async::messaging::IntoSender
source · 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.