Skip to main content

WorkflowResult

Type Alias WorkflowResult 

Source
pub type WorkflowResult<T> = Result<T, WorkflowTermination>;
Expand description

The result of running a workflow.

Successful completion returns Ok(T) where T is the workflow’s return type. Non-error terminations (cancel, eviction, continue-as-new) return Err(WorkflowTermination).

Aliased Type§

pub enum WorkflowResult<T> {
    Ok(T),
    Err(WorkflowTermination),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(WorkflowTermination)

Contains the error value