[][src]Trait async_http1_lite::stream::Http1StreamEncoder

pub trait Http1StreamEncoder<S, H> where
    S: AsyncWrite + Unpin,
    H: Head
{ #[must_use] fn write_head<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        stream: &'life1 mut S,
        head: H,
        body_framing: BodyFraming
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn write_body<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        stream: &'life1 mut S,
        body: EncoderBody
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn set_write_timeout(&mut self, dur: Duration); }

Required methods

#[must_use]fn write_head<'life0, 'life1, 'async_trait>(
    &'life0 mut self,
    stream: &'life1 mut S,
    head: H,
    body_framing: BodyFraming
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn write_body<'life0, 'life1, 'async_trait>(
    &'life0 mut self,
    stream: &'life1 mut S,
    body: EncoderBody
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

fn set_write_timeout(&mut self, dur: Duration)

Loading content...

Implementors

impl<S> Http1StreamEncoder<S, (Response<()>, Option<Vec<u8>>)> for Http1ResponseEncoder where
    S: AsyncWrite + Unpin + Send
[src]

impl<S> Http1StreamEncoder<S, Request<()>> for Http1RequestEncoder where
    S: AsyncWrite + Unpin + Send
[src]

Loading content...