Trait fire_http_representation::bytes_stream::BytesStream[][src]

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

fn poll_bytes(
    self: Pin<&mut Self>,
    cx: &mut Context<'_>
) -> Poll<Result<Option<Bytes>>>
[src]

The returned bytes are never allowed to be empty.

Implementations on Foreign Types

impl<S: BytesStream + ?Sized> BytesStream for Pin<Box<S>>[src]

fn poll_bytes(
    self: Pin<&mut Self>,
    cx: &mut Context<'_>
) -> Poll<Result<Option<Bytes>>>
[src]

impl BytesStream for ()[src]

fn poll_bytes(
    self: Pin<&mut Self>,
    _: &mut Context<'_>
) -> Poll<Result<Option<Bytes>>>
[src]

impl BytesStream for Bytes[src]

fn poll_bytes(
    self: Pin<&mut Self>,
    _: &mut Context<'_>
) -> Poll<Result<Option<Bytes>>>
[src]

Implementors

impl BytesStream for MoreBytes[src]

fn poll_bytes(
    self: Pin<&mut Self>,
    _: &mut Context<'_>
) -> Poll<Result<Option<Bytes>>>
[src]

This will always return Poll::Ready(Ok(_)).