[−][src]Enum actix_web::dev::EitherCollisionStrategy
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
impl Send for EitherCollisionStrategy
impl Sync for EitherCollisionStrategy
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.