HandlerResult

Type Alias HandlerResult 

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

Result type for Rocket handlers.

All pre-built handlers return this type, making it easy to use ? operator for error handling in custom code.

Aliased Type§

pub enum HandlerResult<T> {
    Ok(T),
    Err(ErrorResponder),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(ErrorResponder)

Contains the error value