Struct WriteHalf
pub struct WriteHalf<T> { /* private fields */ }
The writable half of an object returned from AsyncRead::split.
Implementations
impl<T> WriteHalf<T>
fn is_pair_of(&self, other: &ReadHalf<T>) -> boolChecks if this
WriteHalfand someReadHalfwere split from the same stream.
impl<T: Unpin> WriteHalf<T>
fn reunite(self, other: ReadHalf<T>) -> Result<T, ReuniteError<T>>Attempts to put the two "halves" of a split
AsyncRead + AsyncWriteback together. Succeeds only if theReadHalf<T>andWriteHalf<T>are a matching pair originating from the same call toAsyncReadExt::split.
Trait Implementations
impl<T: Debug> Debug for WriteHalf<T>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<W: AsyncWrite> AsyncWrite for WriteHalf<W>
fn poll_write(self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &[u8]) -> Poll<Result<usize>>fn poll_write_vectored(self: Pin<&mut Self>, cx: &mut Context<'_>, bufs: &[IoSlice<'_>]) -> Poll<Result<usize>>fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>fn poll_close(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>
Auto Trait Implementations
impl<T> !RefUnwindSafe for WriteHalf<T>
impl<T> !UnwindSafe for WriteHalf<T>
impl<T> Freeze for WriteHalf<T>
where
BiLock<T>: Freeze,
impl<T> Send for WriteHalf<T>
where
BiLock<T>: Send,
impl<T> Sync for WriteHalf<T>
where
BiLock<T>: Sync,
impl<T> Unpin for WriteHalf<T>
where
BiLock<T>: Unpin,
impl<T> UnsafeUnpin for WriteHalf<T>
where
BiLock<T>: UnsafeUnpin,
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) -> TReturns the argument unchanged.
impl<T, U> Into<U> for WriteHalf<T>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses 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>