pub trait BytesStream {
    fn poll_bytes(
        self: Pin<&mut Self>,
        cx: &mut Context<'_>
    ) -> Poll<Result<Option<Bytes>>>; }
Expand description

A stream that returns Bytes.

Required methods

The returned bytes are never allowed to be empty.

Implementations on Foreign Types

Implementors