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§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl<T: Send> TrySend for Sender<T>
Available on crate feature experimental_async_runtime and (crate features rt-tokio-current-thread or rt-tokio) only.
impl<T: Send> TrySend for Sender<T>
Available on crate feature
experimental_async_runtime and (crate features rt-tokio-current-thread or rt-tokio) only.