DynError

Type Alias DynError 

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

Rust is a wrapper for the standard library’s std::error::Error trait, which is used to define the behavior of types that can be used for error handling. It provides a way to represent errors in a consistent and type-safe manner.

Aliased Type§

pub enum DynError<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