Trait hyper::proto::h1::io::MemRead

source ·
pub(crate) trait MemRead {
    // Required method
    fn read_mem(
        &mut self,
        cx: &mut Context<'_>,
        len: usize,
    ) -> Poll<Result<Bytes>>;
}

Required Methods§

source

fn read_mem(&mut self, cx: &mut Context<'_>, len: usize) -> Poll<Result<Bytes>>

Implementors§

source§

impl<T, B> MemRead for Buffered<T, B>
where T: AsyncRead + AsyncWrite + Unpin, B: Buf,