[][src]Trait conjure_http::client::AsyncVisitRequestBody

pub trait AsyncVisitRequestBody<'a, W> {
    type Output;
    fn visit_empty(self) -> Self::Output;
fn visit_serializable<T>(self, body: T) -> Self::Output
    where
        T: Serialize + 'a
;
fn visit_binary<T>(self, body: T) -> Self::Output
    where
        T: AsyncWriteBody<W> + Sync + Send + 'a
; }

A visitor over async request body formats.

Associated Types

type Output

The output type returned by visit methods.

Loading content...

Required methods

fn visit_empty(self) -> Self::Output

Visits an empty body.

fn visit_serializable<T>(self, body: T) -> Self::Output where
    T: Serialize + 'a, 

Visits a serializable body.

fn visit_binary<T>(self, body: T) -> Self::Output where
    T: AsyncWriteBody<W> + Sync + Send + 'a, 

Visits a streaming, binary body.

Loading content...

Implementors

Loading content...