io_extras::os::windows

Trait AsHandleOrSocket

Source
pub trait AsHandleOrSocket {
    // Required method
    fn as_handle_or_socket(&self) -> BorrowedHandleOrSocket<'_>;
}
Expand description

Like AsHandle and AsSocket, but implementable by types which can implement either one.

Required Methods§

Source

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

Source§

impl AsHandleOrSocket for Stderr

Source§

impl AsHandleOrSocket for StderrLock<'_>

Source§

impl AsHandleOrSocket for Stdin

Source§

impl AsHandleOrSocket for StdinLock<'_>

Source§

impl AsHandleOrSocket for Stdout

Source§

impl AsHandleOrSocket for StdoutLock<'_>

Source§

impl AsHandleOrSocket for TcpListener

Source§

impl AsHandleOrSocket for TcpStream

Source§

impl AsHandleOrSocket for UdpSocket

Source§

impl AsHandleOrSocket for ChildStderr

Source§

impl AsHandleOrSocket for ChildStdin

Source§

impl AsHandleOrSocket for ChildStdout

Implementors§

Source§

impl AsHandleOrSocket for OwnedReadable

OwnedReadable owns its handle.

Source§

impl AsHandleOrSocket for OwnedWriteable

OwnedWriteable owns its handle.

Source§

impl AsHandleOrSocket for BorrowedHandleOrSocket<'_>

Source§

impl AsHandleOrSocket for OwnedHandleOrSocket

Source§

impl<'a> AsHandleOrSocket for BorrowedReadable<'a>

BorrowedReadable borrows its handle.

Source§

impl<'a> AsHandleOrSocket for BorrowedWriteable<'a>

BorrowedWriteable borrows its handle.

Source§

impl<'a, RW: AsReadWriteHandleOrSocket> AsHandleOrSocket for ReadHalf<'a, RW>

Source§

impl<'a, RW: AsReadWriteHandleOrSocket> AsHandleOrSocket for WriteHalf<'a, RW>