titan_core

Trait FromRequestParts

Source
pub trait FromRequestParts: Sized {
    type Error: Respondable;

    // Required method
    fn from_request_parts(req: &mut Parts) -> Result<Self, Self::Error>;
}
Expand description

Types that can be created from request parts.

Extractors that implement FromRequestParts cannot consume the request body and can thus be run in any order for handlers.

If your extractor needs to consume the request body then you should implement FromRequest and not FromRequestParts.

Required Associated Types§

Required Methods§

Source

fn from_request_parts(req: &mut Parts) -> Result<Self, Self::Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T1> FromRequestParts for (T1,)
where T1: FromRequestParts + Send,

Source§

type Error = Response<Body>

Source§

fn from_request_parts(parts: &mut Parts) -> Result<Self, Self::Error>

Source§

impl<T1, T2> FromRequestParts for (T1, T2)

Source§

type Error = Response<Body>

Source§

fn from_request_parts(parts: &mut Parts) -> Result<Self, Self::Error>

Source§

impl<T1, T2, T3> FromRequestParts for (T1, T2, T3)

Source§

type Error = Response<Body>

Source§

fn from_request_parts(parts: &mut Parts) -> Result<Self, Self::Error>

Source§

impl<T1, T2, T3, T4> FromRequestParts for (T1, T2, T3, T4)

Source§

type Error = Response<Body>

Source§

fn from_request_parts(parts: &mut Parts) -> Result<Self, Self::Error>

Source§

impl<T1, T2, T3, T4, T5> FromRequestParts for (T1, T2, T3, T4, T5)

Source§

type Error = Response<Body>

Source§

fn from_request_parts(parts: &mut Parts) -> Result<Self, Self::Error>

Source§

impl<T1, T2, T3, T4, T5, T6> FromRequestParts for (T1, T2, T3, T4, T5, T6)

Source§

type Error = Response<Body>

Source§

fn from_request_parts(parts: &mut Parts) -> Result<Self, Self::Error>

Source§

impl<T1, T2, T3, T4, T5, T6, T7> FromRequestParts for (T1, T2, T3, T4, T5, T6, T7)

Source§

type Error = Response<Body>

Source§

fn from_request_parts(parts: &mut Parts) -> Result<Self, Self::Error>

Source§

impl<T1, T2, T3, T4, T5, T6, T7, T8> FromRequestParts for (T1, T2, T3, T4, T5, T6, T7, T8)

Source§

type Error = Response<Body>

Source§

fn from_request_parts(parts: &mut Parts) -> Result<Self, Self::Error>

Source§

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9> FromRequestParts for (T1, T2, T3, T4, T5, T6, T7, T8, T9)

Source§

type Error = Response<Body>

Source§

fn from_request_parts(parts: &mut Parts) -> Result<Self, Self::Error>

Source§

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> FromRequestParts for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)

Source§

type Error = Response<Body>

Source§

fn from_request_parts(parts: &mut Parts) -> Result<Self, Self::Error>

Source§

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> FromRequestParts for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)

Source§

type Error = Response<Body>

Source§

fn from_request_parts(parts: &mut Parts) -> Result<Self, Self::Error>

Source§

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> FromRequestParts for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)

Source§

type Error = Response<Body>

Source§

fn from_request_parts(parts: &mut Parts) -> Result<Self, Self::Error>

Source§

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> FromRequestParts for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)

Source§

type Error = Response<Body>

Source§

fn from_request_parts(parts: &mut Parts) -> Result<Self, Self::Error>

Source§

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> FromRequestParts for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)

Source§

type Error = Response<Body>

Source§

fn from_request_parts(parts: &mut Parts) -> Result<Self, Self::Error>

Source§

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> FromRequestParts for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)

Source§

type Error = Response<Body>

Source§

fn from_request_parts(parts: &mut Parts) -> Result<Self, Self::Error>

Source§

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> FromRequestParts for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)

Source§

type Error = Response<Body>

Source§

fn from_request_parts(parts: &mut Parts) -> Result<Self, Self::Error>

Implementors§