[][src]Struct tower_http_util::body::IntoBufStream

pub struct IntoBufStream<T> { /* fields omitted */ }

Wraps a Body instance, implementing tokio_buf::BufStream.

See into_buf_stream function documentation for more details.

Trait Implementations

impl<T: Debug> Debug for IntoBufStream<T>[src]

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

type Item = T::Data

Values yielded by the BufStream. Read more

type Error = T::Error

The error type this BufStream might generate.

Auto Trait Implementations

impl<T> Send for IntoBufStream<T> where
    T: Send

impl<T> Sync for IntoBufStream<T> where
    T: Sync

Blanket Implementations

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

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

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

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.

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

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

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

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> BufStreamExt for T where
    T: BufStream
[src]

fn chain<T>(self, other: T) -> Chain<Self, T> where
    T: BufStream<Error = Self::Error>, 
[src]

Takes two buf streams and creates a new buf stream over both in sequence. Read more

fn collect<T>(self) -> Collect<Self, T> where
    T: FromBufStream<Self::Item>, 
[src]

Consumes all data from self, storing it in byte storage of type T. Read more

fn limit(self, amount: u64) -> Limit<Self>[src]

Limit the number of bytes that the stream can yield. Read more

fn into_stream(self) -> IntoStream<Self>[src]

Creates a Stream from a BufStream. Read more

impl<T> Erased for T