Struct futures_util::io::ReadHalf
source · pub struct ReadHalf<T> { /* private fields */ }
Expand description
The readable half of an object returned from AsyncRead::split
.
Trait Implementations§
source§impl<R: AsyncRead> AsyncRead for ReadHalf<R>
impl<R: AsyncRead> AsyncRead for ReadHalf<R>
source§fn poll_read(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &mut [u8],
) -> Poll<Result<usize>>
fn poll_read( self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &mut [u8], ) -> Poll<Result<usize>>
source§fn poll_read_vectored(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
vec: &mut [IoSliceMut<'_>],
) -> Poll<Result<usize>>
fn poll_read_vectored( self: Pin<&mut Self>, cx: &mut Context<'_>, vec: &mut [IoSliceMut<'_>], ) -> Poll<Result<usize>>
source§unsafe fn initializer(&self) -> Initializer
unsafe fn initializer(&self) -> Initializer
Determines if this
AsyncRead
er can work with buffers of
uninitialized memory. Read moreAuto Trait Implementations§
impl<T> Freeze for ReadHalf<T>
impl<T> !RefUnwindSafe for ReadHalf<T>
impl<T> Send for ReadHalf<T>where
T: Send,
impl<T> Sync for ReadHalf<T>where
T: Send,
impl<T> Unpin for ReadHalf<T>
impl<T> !UnwindSafe for ReadHalf<T>
Blanket Implementations§
source§impl<R> AsyncReadExt for R
impl<R> AsyncReadExt for R
source§fn copy_into<'a, W>(&'a mut self, writer: &'a mut W) -> CopyInto<'a, Self, W> ⓘ
fn copy_into<'a, W>(&'a mut self, writer: &'a mut W) -> CopyInto<'a, Self, W> ⓘ
Creates a future which copies all the bytes from one object to another. Read more
source§fn read<'a>(&'a mut self, buf: &'a mut [u8]) -> Read<'a, Self> ⓘwhere
Self: Unpin,
fn read<'a>(&'a mut self, buf: &'a mut [u8]) -> Read<'a, Self> ⓘwhere
Self: Unpin,
Tries to read some bytes directly into the given
buf
in asynchronous
manner, returning a future type. Read moresource§fn read_exact<'a>(&'a mut self, buf: &'a mut [u8]) -> ReadExact<'a, Self> ⓘwhere
Self: Unpin,
fn read_exact<'a>(&'a mut self, buf: &'a mut [u8]) -> ReadExact<'a, Self> ⓘwhere
Self: Unpin,
Creates a future which will read exactly enough bytes to fill
buf
,
returning an error if end of file (EOF) is hit sooner. Read moresource§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