[−][src]Struct tokio::io::StreamReader
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]
S: Stream<Item = Result<B, Error>>,
B: Buf,
fn poll_fill_buf(self: Pin<&mut Self>, cx: &mut Context) -> Poll<Result<&[u8]>>[src]
fn consume(self: Pin<&mut Self>, amt: usize)[src]
impl<S, B> AsyncRead for StreamReader<S, B> where
S: Stream<Item = Result<B, Error>>,
B: Buf, [src]
S: Stream<Item = Result<B, Error>>,
B: Buf,
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<'__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,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,