[][src]Struct hreq_h1::RecvStream

pub struct RecvStream { /* fields omitted */ }

Receives a body from the remote peer.

Obtained from either a client::ResponseFuture or server::Connection.

Implementations

impl RecvStream[src]

pub async fn read<'_, '_>(
    &'_ mut self,
    buf: &'_ mut [u8]
) -> Result<usize, Error>
[src]

Read some body data into a given buffer.

Ends when returned size is 0.

pub fn is_end_stream(&self) -> bool[src]

Returns true if there is no more data to receive.

Specifically any further call to read will result in 0 bytes read.

Trait Implementations

impl AsyncRead for RecvStream[src]

impl Debug for RecvStream[src]

Auto Trait Implementations

Blanket Implementations

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

impl<R> AsyncReadExt for R where
    R: AsyncRead + ?Sized
[src]

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.