hyper::proto::h1::io

Trait 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: Read + Write + Unpin, B: Buf,