DynResult

Type Alias DynResult 

Source
pub type DynResult<T> = Result<T, Box<dyn Error>>;
Expand description

Result type that boxes the error. Allows constructors to return arbitrary errors.

Aliased Type§

pub enum DynResult<T> {
    Ok(T),
    Err(Box<dyn Error>),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Box<dyn Error>)

Contains the error value