pub struct ReadHalf<'a>(_);
Expand description
Borrowed read half of a UnixStream
, created by split
.
Reading from a ReadHalf
is usually done using the convenience methods found on the
AsyncReadExt
trait. Examples import this trait through the prelude.
Trait Implementations
sourceimpl AsRef<UnixStream> for ReadHalf<'_>
impl AsRef<UnixStream> for ReadHalf<'_>
sourcefn as_ref(&self) -> &UnixStream
fn as_ref(&self) -> &UnixStream
Performs the conversion.
sourceimpl AsyncRead for ReadHalf<'_>
impl AsyncRead for ReadHalf<'_>
sourceunsafe fn prepare_uninitialized_buffer(&self, _: &mut [MaybeUninit<u8>]) -> bool
unsafe fn prepare_uninitialized_buffer(&self, _: &mut [MaybeUninit<u8>]) -> bool
Prepares an uninitialized buffer to be safe to pass to read
. Returns
true
if the supplied buffer was zeroed out. Read more
Auto Trait Implementations
impl<'a> !RefUnwindSafe for ReadHalf<'a>
impl<'a> Send for ReadHalf<'a>
impl<'a> Sync for ReadHalf<'a>
impl<'a> Unpin for ReadHalf<'a>
impl<'a> !UnwindSafe for ReadHalf<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more