pub trait AsyncSender<T> {
// Required methods
fn send(&self, item: T) -> impl Future<Output = ()>;
fn try_send(&self, item: T) -> Result<(), T>;
}Required Methods§
fn send(&self, item: T) -> impl Future<Output = ()>
fn try_send(&self, item: T) -> Result<(), T>
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.