tihu_native::http

Trait HttpData

Source
pub trait HttpData:
    Sync
    + Send
    + 'static {
    // Required method
    fn try_extract<'life0, 'life1, 'async_trait>(
        request: &'life0 Request<Incoming>,
        remote_addr: SocketAddr,
        data_cache: &'life1 mut HttpDataCache,
    ) -> Pin<Box<dyn Future<Output = Result<Self, Error>> + Send + 'async_trait>>
       where Self: Sized + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn try_extract<'life0, 'life1, 'async_trait>( request: &'life0 Request<Incoming>, remote_addr: SocketAddr, data_cache: &'life1 mut HttpDataCache, ) -> Pin<Box<dyn Future<Output = Result<Self, Error>> + Send + 'async_trait>>
where Self: Sized + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementations on Foreign Types§

Source§

impl HttpData for Option<Cookie>

Source§

fn try_extract<'life0, 'life1, 'async_trait>( request: &'life0 Request<Incoming>, _remote_addr: SocketAddr, _data_cache: &'life1 mut HttpDataCache, ) -> Pin<Box<dyn Future<Output = Result<Self, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§