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: AsReadWriteFd> AsFd for ReadHalf<'a, RW>
impl<'a, RW: AsReadWriteFd> AsFd for ReadHalf<'a, RW>
source§fn as_fd(&self) -> BorrowedFd<'a>
fn as_fd(&self) -> BorrowedFd<'a>
Borrows the file descriptor. Read more
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> AsFilelike for Twhere
T: AsFd,
impl<T> AsFilelike for Twhere
T: AsFd,
source§fn as_filelike(&self) -> BorrowedFd<'_>
fn as_filelike(&self) -> BorrowedFd<'_>
Borrows the reference. Read more
source§fn as_filelike_view<Target>(&self) -> FilelikeView<'_, Target>where
Target: FilelikeViewType,
fn as_filelike_view<Target>(&self) -> FilelikeView<'_, Target>where
Target: FilelikeViewType,
Return a borrowing view of a resource which dereferences to a
&Target
. Read moresource§impl<T> AsGrip for Twhere
T: AsFd,
impl<T> AsGrip for Twhere
T: AsFd,
source§fn as_grip(&self) -> BorrowedFd<'_>
fn as_grip(&self) -> BorrowedFd<'_>
Extracts the grip.
source§impl<T> AsSocketlike for Twhere
T: AsFd,
impl<T> AsSocketlike for Twhere
T: AsFd,
source§fn as_socketlike(&self) -> BorrowedFd<'_>
fn as_socketlike(&self) -> BorrowedFd<'_>
Borrows the reference.
source§fn as_socketlike_view<Target>(&self) -> SocketlikeView<'_, Target>where
Target: SocketlikeViewType,
fn as_socketlike_view<Target>(&self) -> SocketlikeView<'_, Target>where
Target: SocketlikeViewType,
Return a borrowing view of a resource which dereferences to a
&Target
. Read moresource§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
)