Struct io_extras::read_write::ReadHalf
source · pub struct ReadHalf<'a, RW>(_);
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> 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.