Debian Codegraph @

third_party/rust/rustix/src/event/mod.rs

raw
1 //! Event operations.
2
3 #[cfg(any(linux_kernel, solarish, target_os = "redox"))]
4 pub mod epoll;
5 #[cfg(any(
6 linux_kernel,
7 target_os = "freebsd",
8 target_os = "illumos",
9 target_os = "espidf"
10 ))]
11 mod eventfd;
12 #[cfg(all(feature = "alloc", bsd))]
13 pub mod kqueue;
14 #[cfg(not(any(windows, target_os = "redox", target_os = "wasi")))]
15 mod pause;
16 mod poll;
17 #[cfg(solarish)]
18 pub mod port;
19 #[cfg(any(bsd, linux_kernel, windows, target_os = "wasi"))]
20 mod select;
21
22 #[cfg(any(
23 linux_kernel,
24 target_os = "freebsd",
25 target_os = "illumos",
26 target_os = "espidf"
27 ))]
28 pub use eventfd::{eventfd, EventfdFlags};
29 #[cfg(not(any(windows, target_os = "redox", target_os = "wasi")))]
30 pub use pause::*;
31 pub use poll::{poll, PollFd, PollFlags};
32 #[cfg(any(bsd, linux_kernel, windows, target_os = "wasi"))]
33 pub use select::*;