Type Alias rocket::data::Outcome

source ·
pub type Outcome<S, E> = Outcome<S, (Status, E), Data>;
Expand description

Type alias for the Outcome of a FromData conversion.

Aliased Type§

enum Outcome<S, E> {
    Success(S),
    Failure((Status, E)),
    Forward(Data),
}

Variants§

§

Success(S)

Contains the success value.

§

Failure((Status, E))

Contains the failure error value.

§

Forward(Data)

Contains the value to forward on.