pub trait AsHandleOrSocket {
// Required method
fn as_handle_or_socket(&self) -> BorrowedHandleOrSocket<'_>;
}
Expand description
Required Methods§
Sourcefn as_handle_or_socket(&self) -> BorrowedHandleOrSocket<'_>
fn as_handle_or_socket(&self) -> BorrowedHandleOrSocket<'_>
Like AsHandle::as_handle
and AsSocket::as_socket
but can return either type.
Implementations on Foreign Types§
Source§impl AsHandleOrSocket for File
impl AsHandleOrSocket for File
fn as_handle_or_socket(&self) -> BorrowedHandleOrSocket<'_>
Source§impl AsHandleOrSocket for Stderr
impl AsHandleOrSocket for Stderr
fn as_handle_or_socket(&self) -> BorrowedHandleOrSocket<'_>
Source§impl AsHandleOrSocket for StderrLock<'_>
impl AsHandleOrSocket for StderrLock<'_>
fn as_handle_or_socket(&self) -> BorrowedHandleOrSocket<'_>
Source§impl AsHandleOrSocket for Stdin
impl AsHandleOrSocket for Stdin
fn as_handle_or_socket(&self) -> BorrowedHandleOrSocket<'_>
Source§impl AsHandleOrSocket for StdinLock<'_>
impl AsHandleOrSocket for StdinLock<'_>
fn as_handle_or_socket(&self) -> BorrowedHandleOrSocket<'_>
Source§impl AsHandleOrSocket for Stdout
impl AsHandleOrSocket for Stdout
fn as_handle_or_socket(&self) -> BorrowedHandleOrSocket<'_>
Source§impl AsHandleOrSocket for StdoutLock<'_>
impl AsHandleOrSocket for StdoutLock<'_>
fn as_handle_or_socket(&self) -> BorrowedHandleOrSocket<'_>
Source§impl AsHandleOrSocket for TcpListener
impl AsHandleOrSocket for TcpListener
fn as_handle_or_socket(&self) -> BorrowedHandleOrSocket<'_>
Source§impl AsHandleOrSocket for TcpStream
impl AsHandleOrSocket for TcpStream
fn as_handle_or_socket(&self) -> BorrowedHandleOrSocket<'_>
Source§impl AsHandleOrSocket for UdpSocket
impl AsHandleOrSocket for UdpSocket
fn as_handle_or_socket(&self) -> BorrowedHandleOrSocket<'_>
Source§impl AsHandleOrSocket for ChildStderr
impl AsHandleOrSocket for ChildStderr
fn as_handle_or_socket(&self) -> BorrowedHandleOrSocket<'_>
Source§impl AsHandleOrSocket for ChildStdin
impl AsHandleOrSocket for ChildStdin
fn as_handle_or_socket(&self) -> BorrowedHandleOrSocket<'_>
Source§impl AsHandleOrSocket for ChildStdout
impl AsHandleOrSocket for ChildStdout
fn as_handle_or_socket(&self) -> BorrowedHandleOrSocket<'_>
Implementors§
impl AsHandleOrSocket for OwnedReadable
OwnedReadable
owns its handle.
impl AsHandleOrSocket for OwnedWriteable
OwnedWriteable
owns its handle.
impl AsHandleOrSocket for BorrowedHandleOrSocket<'_>
impl AsHandleOrSocket for OwnedHandleOrSocket
impl<'a> AsHandleOrSocket for BorrowedReadable<'a>
BorrowedReadable
borrows its handle.
impl<'a> AsHandleOrSocket for BorrowedWriteable<'a>
BorrowedWriteable
borrows its handle.