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, B, T, E> FromRequest<S, B> for MapReject<T, E>where
B: Send + 'static,
S: Sync,
E: Send + From<<T::Payload as FromRequest<S, B>>::Rejection> + RespError,
T: FromRequestFamily<E>,
T::Payload: FromRequest<S, B>,
impl<S, B, T, E> FromRequest<S, B> for MapReject<T, E>where
B: Send + 'static,
S: Sync,
E: Send + From<<T::Payload as FromRequest<S, B>>::Rejection> + RespError,
T: FromRequestFamily<E>,
T::Payload: FromRequest<S, B>,
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<T, E> FromRequest for MapReject<T, E>where
T: FromRequestFamily<E>,
T::Payload: FromRequest,
E: From<<T::Payload as FromRequest>::Error> + RespError + 'static,
impl<T, E> FromRequest for MapReject<T, E>where
T: FromRequestFamily<E>,
T::Payload: FromRequest,
E: From<<T::Payload as FromRequest>::Error> + RespError + 'static,
Source§type Error = RespResult<Nil, E>
type Error = RespResult<Nil, E>
The associated error which can be returned.
Source§fn from_request(req: &HttpRequest, payload: &mut Payload) -> Self::Future
fn from_request(req: &HttpRequest, payload: &mut Payload) -> Self::Future
Create a
Self from request parts asynchronously.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, B, T> FromRequest<S, B, ViaParts> for T
impl<S, B, T> FromRequest<S, B, 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.