[][src]Trait eiktyrner::content::ResponseContent

pub trait ResponseContent where
    Self::Data: Send + 'static + Unpin
{ type Data; #[must_use] pub fn convert_response<'async_trait>(
        response: Response<Body>
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::Data>, Error>> + Send + 'async_trait>>
    where
        Self: 'async_trait
; }

Associated Types

Loading content...

Required methods

#[must_use]pub fn convert_response<'async_trait>(
    response: Response<Body>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::Data>, Error>> + Send + 'async_trait>> where
    Self: 'async_trait, 
[src]

Loading content...

Implementors

impl ResponseContent for Bytes[src]

type Data = Vec<u8>

impl ResponseContent for Empty[src]

type Data = ()

impl<T> ResponseContent for Json<T> where
    T: DeserializeOwned + Send + 'static + Unpin
[src]

type Data = T

Loading content...