diff options
author | Carl Lerche <me@carllerche.com> | 2019-11-20 00:05:14 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-20 00:05:14 -0800 |
commit | 69975fb9601bbb21659db283d888470733bae660 (patch) | |
tree | 8db7c9a31e4125646634af09e197ae6479e10cc4 /tokio/src/io/mod.rs | |
parent | 7c8b8877d440629ab9a27a2c9dcef859835d3536 (diff) |
Refactor the I/O driver, extracting slab to `tokio::util`. (#1792)
The I/O driver is made private and moved to `tokio::io::driver`. `Registration` is
moved to `tokio::io::Registration` and `PollEvented` is moved to `tokio::io::PollEvented`.
Additionally, the concurrent slab used by the I/O driver is cleaned up and extracted to
`tokio::util::slab`, allowing it to eventually be used by other types.
Diffstat (limited to 'tokio/src/io/mod.rs')
-rw-r--r-- | tokio/src/io/mod.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tokio/src/io/mod.rs b/tokio/src/io/mod.rs index df1888ce..6fa8a17f 100644 --- a/tokio/src/io/mod.rs +++ b/tokio/src/io/mod.rs @@ -49,6 +49,16 @@ pub use self::async_read::AsyncRead; mod async_write; pub use self::async_write::AsyncWrite; +cfg_io_driver! { + pub(crate) mod driver; + + mod poll_evented; + pub use poll_evented::PollEvented; + + mod registration; + pub use registration::Registration; +} + cfg_io_std! { mod stderr; pub use stderr::{stderr, Stderr}; |