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

pub trait ResponseContent where
    Self::Data: Send + 'static + Unpin
{ type Data; 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

type Data

Loading content...

Required methods

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, 

Loading content...

Implementors

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...