Skip to main content

Result

Type Alias Result 

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

Result type alias for Pawan operations

A convenience type alias that represents the result of Pawan operations, where success contains the desired value and failure contains a PawanError.

Aliased Type§

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

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(PawanError)

Contains the error value