pub trait Task: Send {
type Output: Send;
// Required method
fn run(self) -> Self::Output;
}Expand description
A single owned input transferred into a worker and returned as an output.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".