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