Trait Http1StreamDecoder

Source
pub trait Http1StreamDecoder<S, SLEEP, H>
where S: AsyncRead + Unpin, SLEEP: Sleepble, H: Head,
{ // Required methods fn read_head<'life0, 'life1, 'async_trait>( &'life0 mut self, stream: &'life1 mut S, ) -> Pin<Box<dyn Future<Output = Result<(H, BodyFraming), IoError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn read_body<'life0, 'life1, 'async_trait>( &'life0 mut self, stream: &'life1 mut S, ) -> Pin<Box<dyn Future<Output = Result<DecoderBody, IoError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn set_read_timeout(&mut self, dur: Duration); }

Required Methods§

Source

fn read_head<'life0, 'life1, 'async_trait>( &'life0 mut self, stream: &'life1 mut S, ) -> Pin<Box<dyn Future<Output = Result<(H, BodyFraming), IoError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn read_body<'life0, 'life1, 'async_trait>( &'life0 mut self, stream: &'life1 mut S, ) -> Pin<Box<dyn Future<Output = Result<DecoderBody, IoError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn set_read_timeout(&mut self, dur: Duration)

Implementors§

Source§

impl<S, SLEEP> Http1StreamDecoder<S, SLEEP, (Response<()>, Option<Vec<u8>>)> for Http1ResponseDecoder
where S: AsyncRead + Unpin + Send, SLEEP: Sleepble,

Source§

impl<S, SLEEP> Http1StreamDecoder<S, SLEEP, Request<()>> for Http1RequestDecoder
where S: AsyncRead + Unpin + Send, SLEEP: Sleepble,