Skip to main content

Result

Type Alias Result 

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

Result type for drasi-lib operations.

This is the standard result type for all public API methods in drasi-lib. It uses DrasiError which supports pattern matching on specific error variants.

Aliased Type§

pub enum Result<T> {
    Ok(T),
    Err(DrasiError),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(DrasiError)

Contains the error value