Struct ReadHalf
futures_util::io
pub struct ReadHalf<T> { /* fields omitted */ }
The readable half of an object returned from AsyncRead::split.
AsyncRead::split
impl<T: Debug> Debug for ReadHalf<T>
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<R: AsyncRead> AsyncRead for ReadHalf<R>
fn poll_read(&mut self, cx: &mut Context, buf: &mut [u8]) -> Poll<Result<usize>>
Attempt to read from the AsyncRead into buf. Read more
AsyncRead
buf
fn poll_vectored_read( &mut self, cx: &mut Context, vec: &mut [&mut IoVec]) -> Poll<Result<usize>>
Attempt to read from the AsyncRead into vec using vectored IO operations. Read more
vec
unsafe fn initializer(&self) -> Initializer
Determines if this AsyncReader can work with buffers of uninitialized memory. Read more
impl<T> Send for ReadHalf<T> where T: Send,
impl<T> Sync for ReadHalf<T> where T: Send,