Struct WriteHalf

pub struct WriteHalf<T> { /* private fields */ }

The writable half of a value returned from split.

Implementations

impl<T> WriteHalf<T>

fn is_pair_of(&self, other: &ReadHalf<T>) -> bool

Checks if this WriteHalf and some ReadHalf were split from the same stream.

Trait Implementations

impl<T: AsyncWrite> AsyncWrite for WriteHalf<T>

fn poll_write(self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &[u8]) -> Poll<Result<usize, Error>>
fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Error>>
fn poll_shutdown(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Error>>
fn poll_write_vectored(self: Pin<&mut Self>, cx: &mut Context<'_>, bufs: &[IoSlice<'_>]) -> Poll<Result<usize, Error>>
fn is_write_vectored(&self) -> bool

impl<T: Debug> Debug for WriteHalf<T>

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

impl<T: Send> Send for WriteHalf<T>

impl<T: Sync> Sync for WriteHalf<T>

Auto Trait Implementations

impl<T> Freeze for WriteHalf<T> where Arc<Inner<T>>: Freeze,

impl<T> RefUnwindSafe for WriteHalf<T> where Arc<Inner<T>>: RefUnwindSafe,

impl<T> Unpin for WriteHalf<T> where Arc<Inner<T>>: Unpin,

impl<T> UnsafeUnpin for WriteHalf<T> where Arc<Inner<T>>: UnsafeUnpin,

impl<T> UnwindSafe for WriteHalf<T> where Arc<Inner<T>>: UnwindSafe,

Blanket Implementations

impl<T> Any for WriteHalf<T> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for WriteHalf<T> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for WriteHalf<T> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for WriteHalf<T>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for WriteHalf<T> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for WriteHalf<T> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for WriteHalf<T> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

impl<W> AsyncWriteExt for WriteHalf<T> where W: AsyncWrite + ?Sized,