Trait darpi::request::FromRequestBodyWithContainer[][src]

pub trait FromRequestBodyWithContainer<T, E, C> where
    C: 'static + Sync + Send,
    T: DeserializeOwned + 'static,
    E: ResponderError + 'static, 
{ #[must_use] pub fn extract<'life0, 'async_trait>(
        headers: &'life0 HeaderMap<HeaderValue>,
        b: Body,
        __arg2: Arc<C>
    ) -> Pin<Box<dyn Future<Output = Result<T, E>> + 'async_trait + Send, Global>>
    where
        'life0: 'async_trait
; #[must_use] pub fn assert_content_type<'life0, 'async_trait>(
        _content_type: Option<&'life0 HeaderValue>,
        __arg1: Arc<C>
    ) -> Pin<Box<dyn Future<Output = Result<(), E>> + 'async_trait + Send, Global>>
    where
        'life0: 'async_trait
, { ... } }

Required methods

#[must_use]pub fn extract<'life0, 'async_trait>(
    headers: &'life0 HeaderMap<HeaderValue>,
    b: Body,
    __arg2: Arc<C>
) -> Pin<Box<dyn Future<Output = Result<T, E>> + 'async_trait + Send, Global>> where
    'life0: 'async_trait, 
[src]

Loading content...

Provided methods

#[must_use]pub fn assert_content_type<'life0, 'async_trait>(
    _content_type: Option<&'life0 HeaderValue>,
    __arg1: Arc<C>
) -> Pin<Box<dyn Future<Output = Result<(), E>> + 'async_trait + Send, Global>> where
    'life0: 'async_trait, 
[src]

Loading content...

Implementors

impl<F, T, E, C> FromRequestBodyWithContainer<T, E, C> for F where
    C: Any + Sync + Send,
    T: DeserializeOwned + 'static,
    E: ResponderError + 'static,
    F: FromRequestBody<T, E> + 'static, 
[src]

Loading content...