| 1 |
//! Event operations. |
| 2 |
|
| 3 |
#[cfg(any(linux_kernel, target_os = "illumos", 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(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 |
pub 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 |
))] |
| 29 |
pub use eventfd::{eventfd, EventfdFlags}; |
| 30 |
#[cfg(not(any(windows, target_os = "redox", target_os = "wasi")))] |
| 31 |
pub use pause::*; |
| 32 |
pub use poll::{poll, PollFd, PollFlags}; |
| 33 |
#[cfg(any(bsd, linux_kernel, windows, target_os = "wasi"))] |
| 34 |
pub use select::*; |