[][src]Trait unsafe_io::AsRawReadWriteHandleOrSocket

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

Like AsRawHandleOrSocket, but specifically for use with implementations which may contain both reading and writing file descriptors.

Required methods

pub fn as_raw_read_handle_or_socket(&self) -> RawHandleOrSocket[src]

Extracts the raw handle or socket for reading.

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

pub fn as_raw_write_handle_or_socket(&self) -> RawHandleOrSocket[src]

Extracts the raw handle or socket for writing.

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

Loading content...

Implementations on Foreign Types

impl AsRawReadWriteHandleOrSocket for File[src]

impl AsRawReadWriteHandleOrSocket for TcpStream[src]

impl<T: AsRawReadWriteHandleOrSocket> AsRawReadWriteHandleOrSocket for Box<T>[src]

Loading content...

Implementors

Loading content...