Enum std::task::TaskResult

pub enum TaskResult {
    Success,
    Failure,
}

Indicates the manner in which a task exited.

A task that completes without failing is considered to exit successfully. Supervised ancestors and linked siblings may yet fail after this task succeeds. Also note that in such a case, it may be nondeterministic whether linked failure or successful exit happen first.

If you wish for this result's delivery to block until all linked and/or children tasks complete, recommend using a result future.

Trait Implementations

impl Eq for TaskResult

fn eq(&self, __arg_0: &TaskResult) -> bool

fn ne(&self, __arg_0: &TaskResult) -> bool