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