pub struct WriteHalf<T> { /* private fields */ }
Expand description
The writable half of a value returned from split
.
Implementations
sourceimpl<T> WriteHalf<T>
impl<T> WriteHalf<T>
sourcepub fn is_pair_of(&self, other: &ReadHalf<T>) -> bool
pub fn is_pair_of(&self, other: &ReadHalf<T>) -> bool
Check if this WriteHalf
and some ReadHalf
were split from the same
stream.
Trait Implementations
sourceimpl<T: AsyncWrite> AsyncWrite for WriteHalf<T>
impl<T: AsyncWrite> AsyncWrite for WriteHalf<T>
sourcefn poll_write(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &[u8]
) -> Poll<Result<usize, Error>>
fn poll_write(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &[u8]
) -> Poll<Result<usize, Error>>
Attempt to write bytes from buf
into the object. Read more
sourcefn poll_flush(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Error>>
fn poll_flush(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Error>>
Attempts to flush the object, ensuring that any buffered data reach their destination. Read more
impl<T: Send> Send for WriteHalf<T>
impl<T: Sync> Sync for WriteHalf<T>
Auto Trait Implementations
impl<T> !RefUnwindSafe for WriteHalf<T>
impl<T> Unpin for WriteHalf<T>
impl<T> !UnwindSafe for WriteHalf<T>
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