logo
pub trait FromRequest: Sized {
    type Error: IntoResponse;

    fn extract<'life0, 'async_trait>(
        req: &'life0 mut Request
    ) -> Pin<Box<dyn Future<Output = Result<Self, Self::Error>> + Send + 'async_trait>>Notable traits for Pin<P>impl<P> Future for Pin<P> where
    P: DerefMut,
    <P as Deref>::Target: Future
type Output = <<P as Deref>::Target as Future>::Output;

    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

An interface for extracting data from the HTTP Request.

Required Associated Types

The type returned in the event of a conversion error.

Required Methods

Extracts this type from the HTTP Request.

Implementations on Foreign Types

Implementors