Trait io_extras::read_write::AsRawReadWriteHandleOrSocket[][src]

pub trait AsRawReadWriteHandleOrSocket {
    fn as_raw_read_handle_or_socket(&self) -> RawHandleOrSocket;
fn as_raw_write_handle_or_socket(&self) -> RawHandleOrSocket; }
Expand description

Like AsRawHandleOrSocket, 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 raw handle or socket for reading.

Like AsRawHandleOrSocket::as_raw_handle_or_socket, but returns the reading handle.

Extracts the raw handle or socket for writing.

Like AsRawHandleOrSocket::as_raw_handle_or_socket, but returns the writing handle.

Implementations on Foreign Types

Implementors