pub type Outcome<S, E> = Outcome<S, (Status, E), Status>;
Expand description
Type alias for the Outcome
of a FromRequest
conversion.
Aliased Type§
enum Outcome<S, E> {
Success(S),
Error((Status, E)),
Forward(Status),
}
Variants§
Success(S)
Contains the success value.
Error((Status, E))
Contains the error error value.
Forward(Status)
Contains the value to forward on.
Trait Implementations§
source§impl<'r, T: FromRequest<'r>> FromRequest<'r> for Outcome<T, T::Error>
impl<'r, T: FromRequest<'r>> FromRequest<'r> for Outcome<T, T::Error>
source§type Error = Infallible
type Error = Infallible
The associated error to be returned if derivation fails.