pub trait TryTask<'a>: Debug {
    type Inputs: Tuple;
    type Ok: IntoAny;
    type Err: 'a;
    type Future: Future<Output = Result<Self::Ok, Self::Err>> + Send + 'a;

    fn run(self, inputs: Self::Inputs) -> Self::Future;
}
Expand description

An async task.

Required Associated Types

Tuple of inputs.

Successful output.

Error output.

Output future.

Required Methods

Runs the task and gets a future.

Implementors