rocket::response

Type Alias Result

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

Type alias for the Result of a Responder::respond call.

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