Skip to main content

OperationResult

Type Alias OperationResult 

Source
pub type OperationResult<T> = Result<T, HostError>;
Expand description

Result convention required for generated interface operations.

Ok(T) is an application result, including domain-failure union cases. Err(HostError) means the host or runtime could not perform the operation.

Aliased Type§

pub enum OperationResult<T> {
    Ok(T),
    Err(HostError),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(HostError)

Contains the error value