[][src]Struct tokio::io::StreamReader

pub struct StreamReader<S, B> { /* fields omitted */ }
This is supported on feature="stream" and feature="io-util" only.

Convert a stream of byte chunks into an AsyncRead.

This type is usually created using the stream_reader function.

Trait Implementations

impl<S, B> AsyncBufRead for StreamReader<S, B> where
    S: Stream<Item = Result<B, Error>>,
    B: Buf
[src]

impl<S, B> AsyncRead for StreamReader<S, B> where
    S: Stream<Item = Result<B, Error>>,
    B: Buf
[src]

impl<S: Debug, B: Debug> Debug for StreamReader<S, B>[src]

impl<'__pin, S, B> Unpin for StreamReader<S, B> where
    __Origin<'__pin, S, B>: Unpin
[src]

Auto Trait Implementations

impl<S, B> RefUnwindSafe for StreamReader<S, B> where
    B: RefUnwindSafe,
    S: RefUnwindSafe

impl<S, B> Send for StreamReader<S, B> where
    B: Send,
    S: Send

impl<S, B> Sync for StreamReader<S, B> where
    B: Sync,
    S: Sync

impl<S, B> UnwindSafe for StreamReader<S, B> where
    B: UnwindSafe,
    S: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?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.