[−][src]Trait async_http1_lite::stream::Http1StreamEncoder
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,
&'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,
&'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)
Implementors
impl<S> Http1StreamEncoder<S, (Response<()>, Option<Vec<u8>>)> for Http1ResponseEncoder where
S: AsyncWrite + Unpin + Send,
[src]
S: AsyncWrite + Unpin + Send,
fn write_head<'life0, 'life1, 'async_trait>(
&'life0 mut self,
stream: &'life1 mut S,
head: (Response<()>, ReasonPhrase),
body_framing: BodyFraming
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
stream: &'life1 mut S,
head: (Response<()>, ReasonPhrase),
body_framing: BodyFraming
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
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,
[src]
&'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)
[src]
impl<S> Http1StreamEncoder<S, Request<()>> for Http1RequestEncoder where
S: AsyncWrite + Unpin + Send,
[src]
S: AsyncWrite + Unpin + Send,
fn write_head<'life0, 'life1, 'async_trait>(
&'life0 mut self,
stream: &'life1 mut S,
head: Request<()>,
body_framing: BodyFraming
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
stream: &'life1 mut S,
head: Request<()>,
body_framing: BodyFraming
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
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,
[src]
&'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,