[][src]Enum actix_web::dev::EitherCollisionStrategy

pub enum EitherCollisionStrategy {
    PreferA,
    PreferB,
    FastestSuccessful,
    ErrorA,
    ErrorB,
}

Defines the result if neither or both of the extractors supplied to an Either<A,B> extractor succeed.

Variants

PreferA

If both are successful, return A, if both fail, return error of B

PreferB

If both are successful, return B, if both fail, return error of A

FastestSuccessful

Return result of the faster, error of the slower if both fail

ErrorA

Return error if both succeed, return error of A if both fail

ErrorB

Return error if both succeed, return error of B if both fail

Trait Implementations

impl Default for EitherCollisionStrategy[src]

impl Debug for EitherCollisionStrategy[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Erased for T