Trait io_extras::grip::AsReadWriteGrip
source · [−]pub trait AsReadWriteGrip: AsReadWriteFd {
fn as_read_grip(&self) -> BorrowedGrip<'_>;
fn as_write_grip(&self) -> BorrowedGrip<'_>;
}
Expand description
Portability abstraction over AsReadWriteFd
and
AsReadWriteHandleOrSocket
.
Required methods
fn as_read_grip(&self) -> BorrowedGrip<'_>
fn as_read_grip(&self) -> BorrowedGrip<'_>
Extracts the grip for reading.
Like AsGrip::as_grip
, but returns the
reading grip.
fn as_write_grip(&self) -> BorrowedGrip<'_>
fn as_write_grip(&self) -> BorrowedGrip<'_>
Extracts the grip for writing.
Like AsGrip::as_grip
, but returns the
writing grip.