diff options
author | Carl Lerche <me@carllerche.com> | 2020-11-11 09:28:21 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-11 09:28:21 -0800 |
commit | ce891a4df17e632f7557dd0cd1f1e8da89bd6ae4 (patch) | |
tree | fa5478c0b3bacacfc65bfbadbe1cdb92234d5b5f /tokio/src/io/mod.rs | |
parent | d869e16990c5fc2cbda48b036708efa4b450e807 (diff) |
io: driver internal cleanup (#3124)
* Removes duplicated code by moving it to `Registration`.
* impl `Deref` for `PollEvented` to avoid `get_ref()`.
* Avoid extra waker clones in I/O driver.
* Add `Interest` wrapper around `mio::Interest`.
Diffstat (limited to 'tokio/src/io/mod.rs')
-rw-r--r-- | tokio/src/io/mod.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tokio/src/io/mod.rs b/tokio/src/io/mod.rs index 20d92233..499633ee 100644 --- a/tokio/src/io/mod.rs +++ b/tokio/src/io/mod.rs @@ -206,8 +206,7 @@ pub use std::io::{Error, ErrorKind, Result, SeekFrom}; cfg_io_driver! { pub(crate) mod driver; - - mod registration; + pub(crate) use driver::Interest; mod poll_evented; |