pub trait BytesStreamExt: BytesStream {
    fn next_bytes<'a>(&'a mut self) -> NextBytes<'a, Self>
    where
        Self: Unpin
, { ... } }
Expand description

An extension trait implemented for all BytesStream types.

Provided methods

returns the next bytes.

Equivalent to:

async fn next_bytes(&mut self) -> io::Result<Option<Bytes>>;

Implementors