2023-02-03 19:14:33 +00:00
|
|
|
//! Platform-specific functionality.
|
|
|
|
|
|
|
|
#[cfg(all(
|
|
|
|
any(
|
|
|
|
target_os = "macos",
|
|
|
|
target_os = "ios",
|
|
|
|
target_os = "tvos",
|
|
|
|
target_os = "watchos",
|
|
|
|
target_os = "freebsd",
|
|
|
|
target_os = "netbsd",
|
|
|
|
target_os = "openbsd",
|
|
|
|
target_os = "dragonfly",
|
|
|
|
),
|
|
|
|
not(polling_test_poll_backend),
|
|
|
|
))]
|
|
|
|
pub mod kqueue;
|
|
|
|
|
2023-04-16 14:37:48 +00:00
|
|
|
#[cfg(target_os = "windows")]
|
|
|
|
pub mod iocp;
|
|
|
|
|
2023-02-03 19:14:33 +00:00
|
|
|
mod __private {
|
|
|
|
#[doc(hidden)]
|
2024-02-11 16:31:13 +00:00
|
|
|
#[allow(dead_code)]
|
2023-02-03 19:14:33 +00:00
|
|
|
pub trait PollerSealed {}
|
2023-04-16 14:37:48 +00:00
|
|
|
|
|
|
|
impl PollerSealed for crate::Poller {}
|
2023-02-03 19:14:33 +00:00
|
|
|
}
|