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

Version Path
wasmtime-14.0.3 ./ext/cargo-vendor/io-extras-0.18.0/src/os/rustix.rs
wasmtime-14.0.1 ./ext/cargo-vendor/io-extras-0.18.0/src/os/rustix.rs
wasmtime-14.0.0 ./ext/cargo-vendor/io-extras-0.18.0/src/os/rustix.rs
wasmtime-13.0.0 ./ext/cargo-vendor/io-extras-0.18.0/src/os/rustix.rs
wasmtime-12.0.1 ./ext/cargo-vendor/io-extras-0.18.0/src/os/rustix.rs
wasmtime-12.0.0 ./ext/cargo-vendor/io-extras-0.18.0/src/os/rustix.rs
wasmtime-11.0.0 ./ext/cargo-vendor/io-extras-0.17.4/src/os/rustix.rs
wasmtime-10.0.1 ./ext/cargo-vendor/io-extras-0.17.4/src/os/rustix.rs
wasmtime-10.0.0 ./ext/cargo-vendor/io-extras-0.17.4/src/os/rustix.rs
wasmtime-9.0.4 ./ext/cargo-vendor/io-extras-0.17.4/src/os/rustix.rs
wasmtime-9.0.1 ./ext/cargo-vendor/io-extras-0.17.4/src/os/rustix.rs
wasmtime-8.0.0 ./ext/cargo-vendor/io-extras-0.17.4/src/os/rustix.rs
wasmtime-7.0.0 ./ext/cargo-vendor/io-extras-0.17.2/src/os/rustix.rs
wasmtime-6.0.1 ./ext/cargo-vendor/io-extras-0.17.2/src/os/rustix.rs
wasmtime-6.0.0 ./ext/cargo-vendor/io-extras-0.17.2/src/os/rustix.rs
wasmtime-5.0.0 ./ext/cargo-vendor/io-extras-0.17.1/src/os/rustix.rs
wasmtime-0.4.1 ./ext/cargo-vendor/io-extras-0.17.0/src/os/rustix.rs
wasmtime-0.4.0 ./ext/cargo-vendor/io-extras-0.17.0/src/os/rustix.rs