Trait IntoTask

Source
pub trait IntoTask {
    type Output;
    type Task: Task<Output = Self::Output>;

    // Required method
    fn into_task(self) -> Self::Task;
}
Expand description

Trait representing the conversion to a Task.

Required Associated Types§

Source

type Output

The type of output value.

Source

type Task: Task<Output = Self::Output>

The type of value to be converted.

Required Methods§

Source

fn into_task(self) -> Self::Task

Perform conversion itself into a Task.

Implementors§