Skip to main content

TaskResult

Type Alias TaskResult 

Source
pub type TaskResult = Result<(), Box<dyn Error + Send + Sync + 'static>>;
Expand description

Error-erased result returned by one task-owned workload.

Aliased Type§

pub enum TaskResult {
    Ok(()),
    Err(Box<dyn Error + Sync + Send>),
}

Variants§

§1.0.0

Ok(())

Contains the success value

§1.0.0

Err(Box<dyn Error + Sync + Send>)

Contains the error value