pub trait TrySend: Sync + Send {
type Message;
// Required method
fn try_send(&self, item: Self::Message) -> Result<(), TrySendError>;
}Expand description
TrySend is an abstraction of Sender that is capable of sending messages through a reference.
Required Associated Types§
Required Methods§
Implementations on Foreign Types§
Source§impl<T: Send> TrySend for Sender<T>
Available on crate feature experimental_async_runtime and (crate features rt-tokio or rt-tokio-current-thread) only.
impl<T: Send> TrySend for Sender<T>
Available on crate feature
experimental_async_runtime and (crate features rt-tokio or rt-tokio-current-thread) only.