Struct tokio::io::ReadHalf [−][src]
pub struct ReadHalf<T> { /* fields omitted */ }Expand description
The readable half of a value returned from split.
Implementations
impl<T> ReadHalf<T>[src]
impl<T> ReadHalf<T>[src]pub fn is_pair_of(&self, other: &WriteHalf<T>) -> bool[src]
pub fn is_pair_of(&self, other: &WriteHalf<T>) -> bool[src]Checks if this ReadHalf and some WriteHalf were split from the same
stream.
Trait Implementations
impl<T: AsyncRead> AsyncRead for ReadHalf<T>[src]
impl<T: AsyncRead> AsyncRead for ReadHalf<T>[src]fn poll_read(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &mut [u8]
) -> Poll<Result<usize>>[src]
fn poll_read(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &mut [u8]
) -> Poll<Result<usize>>[src]Attempts to read from the AsyncRead into buf. Read more
fn poll_read_buf<B: BufMut>(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &mut B
) -> Poll<Result<usize>>[src]
fn poll_read_buf<B: BufMut>(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &mut B
) -> Poll<Result<usize>>[src]Pulls some bytes from this source into the specified BufMut, returning
how many bytes were read. Read more
unsafe fn prepare_uninitialized_buffer(
&self,
buf: &mut [MaybeUninit<u8>]
) -> bool[src]
unsafe fn prepare_uninitialized_buffer(
&self,
buf: &mut [MaybeUninit<u8>]
) -> bool[src]Prepares an uninitialized buffer to be safe to pass to read. Returns
true if the supplied buffer was zeroed out. Read more