rustix/event/
mod.rs

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