Skip to main content

AnyResult

Type Alias AnyResult 

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

The global any Result alias of the library.

The difference with Result is that it takes a dynamic error Box<dyn AnyError>.

Aliased Type§

pub enum AnyResult<T> {
    Ok(T),
    Err(Box<dyn AnyError + Send>),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Box<dyn AnyError + Send>)

Contains the error value