[][src]Struct tower_h2::RecvBody

pub struct RecvBody { /* fields omitted */ }

Allows a stream to be read from the remote.

Methods

impl RecvBody[src]

pub fn stream_id(&self) -> StreamId[src]

Returns the stream ID of the received stream, or None if this body does not correspond to a stream.

Trait Implementations

impl Debug for RecvBody[src]

impl Body for RecvBody[src]

type Data = Data

Values yielded by the Body.

type Error = Error

The error type this BufStream might generate.

fn size_hint(&self) -> SizeHint[src]

Returns the bounds on the remaining length of the stream. Read more

Auto Trait Implementations

impl Send for RecvBody

impl Sync for RecvBody

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BodyExt for T where
    T: Body
[src]

fn into_buf_stream(self) -> IntoBufStream<Self>[src]

Wrap the Body so that it implements tokio_buf::BufStream directly.

impl<T> Body for T where
    T: BufStream
[src]

type Data = <T as BufStream>::Item

Values yielded by the Body.

type Error = <T as BufStream>::Error

The error type this BufStream might generate.

impl<T> Erased for T