Skip to main content

Result

Type Alias Result 

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

A convenience result type alias that pins the error type to FetchError.

Every public function in this crate that can fail returns this type, so callers only need to handle one error enum.

Aliased Type§

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

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(FetchError)

Contains the error value