Sha256: e122846006f11bc7c462a2509a1131a043e2320cc52189d0523c5d4fbcb7d640
Contents?: true
Size: 622 Bytes
Versions: 38
Compression:
Stored size: 622 Bytes
Contents
//! All Posix-ish platforms have `RawFd` and related traits. Re-export them //! so that users don't need target-specific code to import them. #[cfg(unix)] pub use std::os::unix::io::{AsRawFd, FromRawFd, IntoRawFd, RawFd}; #[cfg(target_os = "wasi")] pub use std::os::wasi::io::{AsRawFd, FromRawFd, IntoRawFd, RawFd}; pub use crate::read_write::{AsRawReadWriteFd, AsReadWriteFd}; // In theory we could do something similar for // `std::os::fortanix_sgx::io::{AsRawFd, FromRawFd, RawFd}`, however it lacks // `IntoRawFd`, and `std::fs::File` doesn't implement its `AsRawFd`, so it // doesn't seem to qualify as Posix-ish.
Version data entries
38 entries across 38 versions & 1 rubygems