OwnedRawFd

Trait OwnedRawFd 

Source
pub trait OwnedRawFd:
    AsRawFd
    + IntoRawFd
    + FromRawFd { }
Expand description

A trait for all structs that wrap a unix file descriptor.

This trait is specifically not implemented for RawFd itself, since that would safely allow the use of fds that don’t refer to an open file. TODO: replace with Into<OwnedFd> when !#[feature(io_safety)] lands https://github.com/rust-lang/rust/issues/87074

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl OwnedRawFd for File

Source§

impl OwnedRawFd for TcpListener

Source§

impl OwnedRawFd for TcpStream

Source§

impl OwnedRawFd for UdpSocket

Source§

impl OwnedRawFd for UnixDatagram

Source§

impl OwnedRawFd for UnixListener

Source§

impl OwnedRawFd for UnixStream

Implementors§