Result

Type Alias Result 

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

Represents either success (Ok) or failure (Err).

Aliased Type§

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

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(E)

Contains the error value

Trait Implementations§

Source§

impl<T, E> IntoResponse for Result<T, E>

Source§

fn into_response(self) -> Response

Convert self to HTTP Response.
Source§

fn into_error(self) -> Error

Convert self to the Error.