pub trait AsRawHandleOrSocket {
// Required method
fn as_raw_handle_or_socket(&self) -> RawHandleOrSocket;
}
Expand description
Like AsRawHandle
and AsRawSocket
, but implementable by types which
can implement either one.
Required Methods§
Sourcefn as_raw_handle_or_socket(&self) -> RawHandleOrSocket
fn as_raw_handle_or_socket(&self) -> RawHandleOrSocket
Like AsRawHandle::as_raw_handle
and AsRawSocket::as_raw_socket
but can return either type.
Implementations on Foreign Types§
Source§impl AsRawHandleOrSocket for File
impl AsRawHandleOrSocket for File
fn as_raw_handle_or_socket(&self) -> RawHandleOrSocket
Source§impl AsRawHandleOrSocket for Stderr
impl AsRawHandleOrSocket for Stderr
fn as_raw_handle_or_socket(&self) -> RawHandleOrSocket
Source§impl AsRawHandleOrSocket for StderrLock<'_>
impl AsRawHandleOrSocket for StderrLock<'_>
fn as_raw_handle_or_socket(&self) -> RawHandleOrSocket
Source§impl AsRawHandleOrSocket for Stdin
impl AsRawHandleOrSocket for Stdin
fn as_raw_handle_or_socket(&self) -> RawHandleOrSocket
Source§impl AsRawHandleOrSocket for StdinLock<'_>
impl AsRawHandleOrSocket for StdinLock<'_>
fn as_raw_handle_or_socket(&self) -> RawHandleOrSocket
Source§impl AsRawHandleOrSocket for Stdout
impl AsRawHandleOrSocket for Stdout
fn as_raw_handle_or_socket(&self) -> RawHandleOrSocket
Source§impl AsRawHandleOrSocket for StdoutLock<'_>
impl AsRawHandleOrSocket for StdoutLock<'_>
fn as_raw_handle_or_socket(&self) -> RawHandleOrSocket
Source§impl AsRawHandleOrSocket for TcpListener
impl AsRawHandleOrSocket for TcpListener
fn as_raw_handle_or_socket(&self) -> RawHandleOrSocket
Source§impl AsRawHandleOrSocket for TcpStream
impl AsRawHandleOrSocket for TcpStream
fn as_raw_handle_or_socket(&self) -> RawHandleOrSocket
Source§impl AsRawHandleOrSocket for UdpSocket
impl AsRawHandleOrSocket for UdpSocket
fn as_raw_handle_or_socket(&self) -> RawHandleOrSocket
Source§impl AsRawHandleOrSocket for ChildStderr
impl AsRawHandleOrSocket for ChildStderr
fn as_raw_handle_or_socket(&self) -> RawHandleOrSocket
Source§impl AsRawHandleOrSocket for ChildStdin
impl AsRawHandleOrSocket for ChildStdin
fn as_raw_handle_or_socket(&self) -> RawHandleOrSocket
Source§impl AsRawHandleOrSocket for ChildStdout
impl AsRawHandleOrSocket for ChildStdout
fn as_raw_handle_or_socket(&self) -> RawHandleOrSocket
Implementors§
impl AsRawHandleOrSocket for RawReadable
RawReadable
doesn’t own its handle.
impl AsRawHandleOrSocket for RawWriteable
RawWriteable
doesn’t own its handle.