#![doc(html_root_url = "https://docs.rs/mio/0.7.0")]
#![deny(
missing_docs,
missing_debug_implementations,
rust_2018_idioms,
unused_imports,
dead_code
)]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![cfg_attr(test, deny(warnings))]
#![doc(test(attr(deny(warnings))))]
# module."
)]
#![cfg_attr(
not(feature = "extra-docs"),
doc = "`guide` (only available when the `extra-docs` feature is enabled)."
)]
# module."
)]
#![cfg_attr(
not(feature = "extra-docs"),
doc = "`features` (only available when the `extra-docs` feature is enabled)."
)]
#[macro_use]
mod macros;
mod interest;
mod poll;
mod sys;
mod token;
mod waker;
pub mod event;
cfg_net! {
mod io_source;
pub mod net;
}
#[doc(no_inline)]
pub use event::Events;
pub use interest::Interest;
pub use poll::{Poll, Registry};
pub use token::Token;
pub use waker::Waker;
#[cfg(all(unix, feature = "os-util"))]
#[cfg_attr(docsrs, doc(cfg(all(unix, feature = "os-util"))))]
pub mod unix {
pub use crate::sys::SourceFd;
}
#[cfg(feature = "extra-docs")]
pub mod features {
#![cfg_attr(feature = "os-poll", doc = "## `os-poll` (enabled)")]
#![cfg_attr(not(feature = "os-poll"), doc = "## `os-poll` (disabled)")]
#![cfg_attr(feature = "os-util", doc = "## `os-util` (enabled)")]
#![cfg_attr(not(feature = "os-util"), doc = "## `os-util` (disabled)")]
#![cfg_attr(feature = "tcp", doc = "* `tcp` (enabled)")]
#![cfg_attr(not(feature = "tcp"), doc = "* `tcp` (disabled)")]
#![cfg_attr(feature = "udp", doc = "* `udp` (enabled)")]
#![cfg_attr(not(feature = "udp"), doc = "* `udp` (disabled)")]
#![cfg_attr(feature = "uds", doc = "* `uds` (enabled)")]
#![cfg_attr(not(feature = "uds"), doc = "* `uds` (disabled)")]
#![cfg_attr(feature = "extra-docs", doc = "## `extra-docs` (enabled)")]
#![cfg_attr(not(feature = "extra-docs"), doc = "## `extra-docs` (disabled)")]
}
#[cfg(feature = "extra-docs")]
pub mod guide {
}