Skip to main content

TaskOutcome

Type Alias TaskOutcome 

Source
pub type TaskOutcome = Result<Transfer, RuntimeError>;
Expand description

What a task thread hands back to the task that spawned it: the value the body produced, in the form that may cross the boundary, or why it stopped.

Aliased Type§

pub enum TaskOutcome {
    Ok(Transfer),
    Err(RuntimeError),
}

Variants§

§1.0.0

Ok(Transfer)

Contains the success value

§1.0.0

Err(RuntimeError)

Contains the error value