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.