pub trait DataTaskResultReceiver<T: Send + 'static>: Send + Sync {
// Required method
fn try_recv(&self) -> Option<T>;
}Expand description
A result receiver for completed async data tasks.
Implementations should be non-blocking: try_recv
returns None when no result is available yet.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".