pub struct ReadHalf<T> { /* private fields */ }
Expand description
The readable half of an object returned from AsyncRead::split
.
Trait Implementations§
Source§impl<T> AsyncRead for ReadHalf<T>where
T: AsyncRead,
impl<T> AsyncRead for ReadHalf<T>where
T: AsyncRead,
Source§fn poll_read(
&mut self,
cx: &mut Context<'_>,
buf: &mut [u8],
) -> Result<Async<usize>, Error>
fn poll_read( &mut self, cx: &mut Context<'_>, buf: &mut [u8], ) -> Result<Async<usize>, Error>
Source§fn poll_vectored_read(
&mut self,
cx: &mut Context<'_>,
vec: &mut [&mut IoVec],
) -> Result<Async<usize>, Error>
fn poll_vectored_read( &mut self, cx: &mut Context<'_>, vec: &mut [&mut IoVec], ) -> Result<Async<usize>, Error>
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<T> AsyncReadExt for T
impl<T> AsyncReadExt for T
Source§fn copy_into<W>(self, writer: W) -> CopyInto<Self, W>where
W: AsyncWrite,
Self: Sized,
fn copy_into<W>(self, writer: W) -> CopyInto<Self, W>where
W: AsyncWrite,
Self: Sized,
Creates a future which copies all the bytes from one object to another. Read more
Source§fn read<T>(self, buf: T) -> Read<Self, T>
fn read<T>(self, buf: T) -> Read<Self, T>
Tries to read some bytes directly into the given
buf
in asynchronous
manner, returning a future type. Read moreSource§fn read_exact<T>(self, buf: T) -> ReadExact<Self, T>
fn read_exact<T>(self, buf: T) -> ReadExact<Self, T>
Creates a future which will read exactly enough bytes to fill
buf
,
returning an error if 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more