Type Alias atmosphere::Result

source ·
pub type Result<T> = Result<T, Error>;
Expand description

A specialized Result type for use throughout the Atmosphere framework.

This type alias simplifies error handling by using the Error enum as the default error type. It is used as the return type for functions and methods within the framework, where errors are expected to be one of the variants defined in the Error enum.

Aliased Type§

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

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Error)

Contains the error value