pub struct MapReject<T: FromRequestFamily<E>, E>(pub <T::Payload as ToInner>::Inner);Tuple Fields§
§0: <T::Payload as ToInner>::InnerTrait Implementations§
Source§impl<S, T, E> FromRequest<S> for MapReject<T, E>where
S: Sync,
E: Send + From<<T::Payload as FromRequest<S>>::Rejection> + RespError,
T: FromRequestFamily<E>,
T::Payload: FromRequest<S>,
impl<S, T, E> FromRequest<S> for MapReject<T, E>where
S: Sync,
E: Send + From<<T::Payload as FromRequest<S>>::Rejection> + RespError,
T: FromRequestFamily<E>,
T::Payload: FromRequest<S>,
Source§type Rejection = RespResult<Nil, E>
type Rejection = RespResult<Nil, E>
If the extractor fails it’ll use this “rejection” type. A rejection is
a kind of error that can be converted into a response.
Source§impl<S, T, E> FromRequestParts<S> for MapReject<T, E>where
S: Sync,
E: Send + From<<T::Payload as FromRequestParts<S>>::Rejection> + RespError,
T: FromRequestFamily<E>,
T::Payload: FromRequestParts<S>,
impl<S, T, E> FromRequestParts<S> for MapReject<T, E>where
S: Sync,
E: Send + From<<T::Payload as FromRequestParts<S>>::Rejection> + RespError,
T: FromRequestFamily<E>,
T::Payload: FromRequestParts<S>,
Source§type Rejection = RespResult<Nil, E>
type Rejection = RespResult<Nil, E>
If the extractor fails it’ll use this “rejection” type. A rejection is
a kind of error that can be converted into a response.
Auto Trait Implementations§
impl<T, E> Freeze for MapReject<T, E>
impl<T, E> RefUnwindSafe for MapReject<T, E>
impl<T, E> Send for MapReject<T, E>
impl<T, E> Sync for MapReject<T, E>
impl<T, E> Unpin for MapReject<T, E>
impl<T, E> UnwindSafe for MapReject<T, E>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<S, T> FromRequest<S, ViaParts> for T
impl<S, T> FromRequest<S, ViaParts> for T
Source§type Rejection = <T as FromRequestParts<S>>::Rejection
type Rejection = <T as FromRequestParts<S>>::Rejection
If the extractor fails it’ll use this “rejection” type. A rejection is
a kind of error that can be converted into a response.