pub struct Reader<T> { /* private fields */ }
Available on crate feature
io
only.Implementations§
Trait Implementations§
Source§impl<T, E> AsyncRead for Reader<T>
impl<T, E> AsyncRead for Reader<T>
type Error = E
Source§fn poll_read(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &mut [u8],
) -> Poll<Result<usize, Self::Error>>
fn poll_read( self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &mut [u8], ) -> Poll<Result<usize, Self::Error>>
Attempt to read from the AsyncRead into buf.
On success, returns Poll::Ready(Ok(num_bytes_read)).
If no data is available for reading, this method returns Poll::Pending
and arranges for the current task to be woken.
Auto Trait Implementations§
impl<T> Freeze for Reader<T>where
T: Freeze,
impl<T> RefUnwindSafe for Reader<T>where
T: RefUnwindSafe,
impl<T> Send for Reader<T>where
T: Send,
impl<T> Sync for Reader<T>where
T: Sync,
impl<T> Unpin for Reader<T>where
T: Unpin,
impl<T> UnwindSafe for Reader<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more