[][src]Trait conjure_http::server::AsyncResponse

pub trait AsyncResponse<W> {
    fn accept<V>(self, visitor: V) -> Result<V::Output, Error>
    where
        V: AsyncVisitResponse<BinaryWriter = W>
; }

An asynchronous HTTP response.

Required methods

fn accept<V>(self, visitor: V) -> Result<V::Output, Error> where
    V: AsyncVisitResponse<BinaryWriter = W>, 

Accepts a visitor, calling the correct method corresponding to the response type.

Loading content...

Implementors

Loading content...