pub struct WriteHalf<T> { /* private fields */ }Expand description
The writable half of an object returned from AsyncRead::split.
Trait Implementations§
Source§impl<T: AsyncWrite> AsyncWrite for WriteHalf<T>
impl<T: AsyncWrite> AsyncWrite for WriteHalf<T>
Source§fn poll_write(&mut self, cx: &mut Context<'_>, buf: &[u8]) -> Poll<usize, Error>
fn poll_write(&mut self, cx: &mut Context<'_>, buf: &[u8]) -> Poll<usize, Error>
Attempt to write bytes from
buf into the object. Read moreSource§fn poll_vectored_write(
&mut self,
cx: &mut Context<'_>,
vec: &[&IoVec],
) -> Poll<usize, Error>
fn poll_vectored_write( &mut self, cx: &mut Context<'_>, vec: &[&IoVec], ) -> Poll<usize, Error>
Attempt to write bytes from
vec into the object using vectored
IO operations. Read moreAuto Trait Implementations§
impl<T> Freeze for WriteHalf<T>
impl<T> !RefUnwindSafe for WriteHalf<T>
impl<T> Send for WriteHalf<T>where
T: Send,
impl<T> Sync for WriteHalf<T>where
T: Send,
impl<T> Unpin for WriteHalf<T>
impl<T> !UnwindSafe for WriteHalf<T>
Blanket Implementations§
Source§impl<T> AsyncWriteExt for Twhere
T: AsyncWrite + ?Sized,
impl<T> AsyncWriteExt for Twhere
T: AsyncWrite + ?Sized,
Source§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