Skip to main content

Task

Trait Task 

Source
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§

Source

fn run(self) -> Self::Output

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§