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-29.0.0 ./ext/cargo-vendor/io-extras-0.18.4/src/os/rustix.rs
wasmtime-28.0.0 ./ext/cargo-vendor/io-extras-0.18.4/src/os/rustix.rs
wasmtime-27.0.0 ./ext/cargo-vendor/io-extras-0.18.3/src/os/rustix.rs
wasmtime-26.0.0 ./ext/cargo-vendor/io-extras-0.18.2/src/os/rustix.rs
wasmtime-25.0.2 ./ext/cargo-vendor/io-extras-0.18.2/src/os/rustix.rs
wasmtime-25.0.1 ./ext/cargo-vendor/io-extras-0.18.2/src/os/rustix.rs
wasmtime-25.0.0 ./ext/cargo-vendor/io-extras-0.18.2/src/os/rustix.rs
wasmtime-24.0.0 ./ext/cargo-vendor/io-extras-0.18.2/src/os/rustix.rs
wasmtime-23.0.2 ./ext/cargo-vendor/io-extras-0.18.1/src/os/rustix.rs
wasmtime-22.0.0 ./ext/cargo-vendor/io-extras-0.18.1/src/os/rustix.rs
wasmtime-21.0.1 ./ext/cargo-vendor/io-extras-0.18.1/src/os/rustix.rs
wasmtime-20.0.2 ./ext/cargo-vendor/io-extras-0.18.1/src/os/rustix.rs
wasmtime-20.0.0 ./ext/cargo-vendor/io-extras-0.18.1/src/os/rustix.rs
wasmtime-18.0.3 ./ext/cargo-vendor/io-extras-0.18.1/src/os/rustix.rs
wasmtime-17.0.1 ./ext/cargo-vendor/io-extras-0.18.1/src/os/rustix.rs
wasmtime-17.0.0 ./ext/cargo-vendor/io-extras-0.18.1/src/os/rustix.rs
wasmtime-16.0.0 ./ext/cargo-vendor/io-extras-0.18.1/src/os/rustix.rs
wasmtime-15.0.1 ./ext/cargo-vendor/io-extras-0.18.1/src/os/rustix.rs
wasmtime-15.0.0 ./ext/cargo-vendor/io-extras-0.18.1/src/os/rustix.rs
wasmtime-14.0.4 ./ext/cargo-vendor/io-extras-0.18.0/src/os/rustix.rs