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