Struct tokio::io::StreamReader  [−][src]
pub struct StreamReader<S, B> { /* fields omitted */ }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> 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, B> AsyncRead for StreamReader<S, B> where
    S: Stream<Item = Result<B, Error>>,
    B: Buf, [src]fn poll_read(
    self: Pin<&mut Self>, 
    cx: &mut Context<'_>, 
    buf: &mut [u8]
) -> Poll<Result<usize>>[src]
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &mut [u8]
) -> Poll<Result<usize>>
fn poll_read_buf<BM: BufMut>(
    self: Pin<&mut Self>, 
    cx: &mut Context<'_>, 
    buf: &mut BM
) -> Poll<Result<usize>> where
    Self: Sized, [src]
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &mut BM
) -> Poll<Result<usize>> where
Self: Sized,
unsafe fn prepare_uninitialized_buffer(
    &self, 
    _buf: &mut [MaybeUninit<u8>]
) -> bool[src]
&self,
_buf: &mut [MaybeUninit<u8>]
) -> bool
impl<S: Debug, B: Debug> Debug for StreamReader<S, B>[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]
__Origin<'__pin, S, B>: Unpin,
Auto Trait Implementations
impl<S, B> RefUnwindSafe for StreamReader<S, B> where
    B: RefUnwindSafe,
    S: RefUnwindSafe, 
B: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, B> Send for StreamReader<S, B> where
    B: Send,
    S: Send, 
B: Send,
S: Send,
impl<S, B> Sync for StreamReader<S, B> where
    B: Sync,
    S: Sync, 
B: Sync,
S: Sync,
impl<S, B> UnwindSafe for StreamReader<S, B> where
    B: UnwindSafe,
    S: UnwindSafe, 
B: UnwindSafe,
S: UnwindSafe,