pub struct ReadHalf<'a, RW>(/* private fields */);
Expand description
Adapt an AsReadWriteGrip
implementation to implement
AsGrip
with the read handle.
Implementations§
Trait Implementations§
Source§impl<'a, RW: AsReadWriteHandleOrSocket> AsHandleOrSocket for ReadHalf<'a, RW>
impl<'a, RW: AsReadWriteHandleOrSocket> AsHandleOrSocket for ReadHalf<'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 ReadHalf<'a, RW>
Auto Trait Implementations§
impl<'a, RW> Freeze for ReadHalf<'a, RW>
impl<'a, RW> RefUnwindSafe for ReadHalf<'a, RW>where
RW: RefUnwindSafe,
impl<'a, RW> Send for ReadHalf<'a, RW>where
RW: Sync,
impl<'a, RW> Sync for ReadHalf<'a, RW>where
RW: Sync,
impl<'a, RW> Unpin for ReadHalf<'a, RW>
impl<'a, RW> UnwindSafe for ReadHalf<'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
)