]> git.lizzy.rs Git - rust.git/blob - library/std/src/os/fd/mod.rs
Rollup merge of #105427 - GuillaumeGomez:dont-silently-ignore-rustdoc-errors, r=notriddle
[rust.git] / library / std / src / os / fd / mod.rs
1 //! Owned and borrowed Unix-like file descriptors.
2 //!
3 //! This module is supported on Unix platforms and WASI, which both use a
4 //! similar file descriptor system for referencing OS resources.
5
6 #![stable(feature = "io_safety", since = "1.63.0")]
7 #![deny(unsafe_op_in_unsafe_fn)]
8
9 // `RawFd`, `AsRawFd`, etc.
10 mod raw;
11
12 // `OwnedFd`, `AsFd`, etc.
13 mod owned;
14
15 // Implementations for `AsRawFd` etc. for network types.
16 mod net;
17
18 #[cfg(test)]
19 mod tests;
20
21 // Export the types and traits for the public API.
22 #[unstable(feature = "os_fd", issue = "98699")]
23 pub use owned::*;
24 #[unstable(feature = "os_fd", issue = "98699")]
25 pub use raw::*;