pub struct WriteHalf<'a, RW>(/* private fields */);
Expand description
Adapt an AsReadWriteGrip
implementation to implement
AsGrip
with the write handle.
Implementations§
Trait Implementations§
Source§impl<'a, RW: AsReadWriteHandleOrSocket> AsHandleOrSocket for WriteHalf<'a, RW>
impl<'a, RW: AsReadWriteHandleOrSocket> AsHandleOrSocket for WriteHalf<'a, RW>
Source§fn as_handle_or_socket(&self) -> BorrowedHandleOrSocket<'a>
fn as_handle_or_socket(&self) -> BorrowedHandleOrSocket<'a>
Like
AsHandle::as_handle
and AsSocket::as_socket
but can return either type.impl<'a, RW: Copy> Copy for WriteHalf<'a, RW>
Auto Trait Implementations§
impl<'a, RW> Freeze for WriteHalf<'a, RW>
impl<'a, RW> RefUnwindSafe for WriteHalf<'a, RW>where
RW: RefUnwindSafe,
impl<'a, RW> Send for WriteHalf<'a, RW>where
RW: Sync,
impl<'a, RW> Sync for WriteHalf<'a, RW>where
RW: Sync,
impl<'a, RW> Unpin for WriteHalf<'a, RW>
impl<'a, RW> UnwindSafe for WriteHalf<'a, RW>where
RW: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> AsGrip for Twhere
T: AsHandleOrSocket,
impl<T> AsGrip for Twhere
T: AsHandleOrSocket,
Source§fn as_grip(&self) -> BorrowedHandleOrSocket<'_>
fn as_grip(&self) -> BorrowedHandleOrSocket<'_>
Extracts the grip.
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)