rocket::data

Type Alias Outcome

Source
pub type Outcome<'r, T, E = <T as FromData<'r>>::Error> = Outcome<T, (Status, E), (Data<'r>, Status)>;
Expand description

Type alias for the Outcome of FromData.

Aliased Type§

enum Outcome<'r, T, E = <T as FromData<'r>>::Error> {
    Success(T),
    Error((Status, E)),
    Forward((Data<'r>, Status)),
}

Variants§

§

Success(T)

Contains the success value.

§

Error((Status, E))

Contains the error error value.

§

Forward((Data<'r>, Status))

Contains the value to forward on.