pub struct RequestExtractor(/* private fields */);
Trait Implementations§
Source§impl FromRequest for RequestExtractor
impl FromRequest for RequestExtractor
Source§type Rejection = StatusCode
type Rejection = StatusCode
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§fn from_request<'life0, 'async_trait>(
req: &'life0 mut RequestParts,
) -> Pin<Box<dyn Future<Output = Result<Self, Self::Rejection>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn from_request<'life0, 'async_trait>(
req: &'life0 mut RequestParts,
) -> Pin<Box<dyn Future<Output = Result<Self, Self::Rejection>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Perform the extraction.
Auto Trait Implementations§
impl Freeze for RequestExtractor
impl RefUnwindSafe for RequestExtractor
impl Send for RequestExtractor
impl Sync for RequestExtractor
impl Unpin for RequestExtractor
impl UnwindSafe for RequestExtractor
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