1 | //! Platform-specific functionality. |
2 | |
3 | #[cfg (all( |
4 | any( |
5 | target_os = "macos" , |
6 | target_os = "ios" , |
7 | target_os = "tvos" , |
8 | target_os = "watchos" , |
9 | target_os = "freebsd" , |
10 | target_os = "netbsd" , |
11 | target_os = "openbsd" , |
12 | target_os = "dragonfly" , |
13 | ), |
14 | not(polling_test_poll_backend), |
15 | ))] |
16 | pub mod kqueue; |
17 | |
18 | #[cfg (target_os = "windows" )] |
19 | pub mod iocp; |
20 | |
21 | mod __private { |
22 | #[doc (hidden)] |
23 | #[allow (dead_code)] |
24 | pub trait PollerSealed {} |
25 | |
26 | impl PollerSealed for crate::Poller {} |
27 | } |
28 | |