Trait io_extras::read_write::AsReadWriteHandleOrSocket[][src]

pub trait AsReadWriteHandleOrSocket {
    fn as_read_handle_or_socket(&self) -> BorrowedHandleOrSocket<'_>;
fn as_write_handle_or_socket(&self) -> BorrowedHandleOrSocket<'_>; }
Expand description

Like AsHandleOrSocket, but for types which may have one or two handles or sockets, for reading and writing.

For types that only have one, both functions return the same value.

Required methods

Extracts the handle or socket for reading.

Like AsHandleOrSocket::as_handle_or_socket, but returns the reading handle.

Extracts the handle or socket for writing.

Like AsHandleOrSocket::as_handle_or_socket, but returns the writing handle.

Implementations on Foreign Types

Implementors