Type Alias rocket::catcher::Result

source ·
pub type Result<'r> = Result<Response<'r>, Status>;
Expand description

Type alias for the return type of a Catcher’s Handler::handle().

Aliased Type§

enum Result<'r> {
    Ok(Response<'r>),
    Err(Status),
}

Variants§

§1.0.0

Ok(Response<'r>)

Contains the success value

§1.0.0

Err(Status)

Contains the error value