[][src]Struct bindle::async_util::BodyReadBuffer

pub struct BodyReadBuffer<B, T, E>(pub T)
where
    B: Buf,
    T: Stream<Item = Result<B, E>> + Unpin,
    E: Error
;

A wrapper around a Warp stream of bytes that implements AsyncRead.

This might no longer be necessary once we hit tokio 0.3 and upgrade tokio-util. Tokio util has a StreamReader wrapper we can use, but there might still be some conversion stuff to deal with

Trait Implementations

impl<'a, B, T, E> AsyncRead for BodyReadBuffer<B, T, E> where
    B: Buf,
    T: Stream<Item = Result<B, E>> + Unpin,
    E: Error + Send + Sync + 'a, 
[src]

Auto Trait Implementations

impl<B, T, E> RefUnwindSafe for BodyReadBuffer<B, T, E> where
    T: RefUnwindSafe
[src]

impl<B, T, E> Send for BodyReadBuffer<B, T, E> where
    T: Send
[src]

impl<B, T, E> Sync for BodyReadBuffer<B, T, E> where
    T: Sync
[src]

impl<B, T, E> Unpin for BodyReadBuffer<B, T, E>[src]

impl<B, T, E> UnwindSafe for BodyReadBuffer<B, T, E> where
    T: UnwindSafe
[src]

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> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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> Typeable for T where
    T: Any

impl<T> UnsafeAny for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,