reactor: rename tokio-reactor -> tokio-net (#1450)

* reactor: rename tokio-reactor -> tokio-net

This is in preparation for #1264
This commit is contained in:
Carl Lerche
2019-08-15 11:04:58 -07:00
committed by GitHub
parent 7b6438a172
commit 8538c25170
48 changed files with 111 additions and 511 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
use tokio_reactor::{Handle, PollEvented};
use tokio_net::{Handle, PollEvented};
use futures_core::ready;
use futures_util::future::poll_fn;
@@ -200,7 +200,7 @@ impl TryFrom<UnixDatagram> for mio_uds::UnixDatagram {
/// Consumes value, returning the mio I/O object.
///
/// See [`tokio_reactor::PollEvented::into_inner`] for more details about
/// See [`tokio_net::PollEvented::into_inner`] for more details about
/// resource deregistration that happens during the call.
fn try_from(value: UnixDatagram) -> Result<Self, Self::Error> {
value.io.into_inner()
+2 -2
View File
@@ -1,6 +1,6 @@
use crate::UnixStream;
use tokio_reactor::{Handle, PollEvented};
use tokio_net::{Handle, PollEvented};
use futures_core::ready;
use futures_util::future::poll_fn;
@@ -102,7 +102,7 @@ impl TryFrom<UnixListener> for mio_uds::UnixListener {
/// Consumes value, returning the mio I/O object.
///
/// See [`tokio_reactor::PollEvented::into_inner`] for more details about
/// See [`tokio_net::PollEvented::into_inner`] for more details about
/// resource deregistration that happens during the call.
fn try_from(value: UnixListener) -> Result<Self, Self::Error> {
value.io.into_inner()
+2 -2
View File
@@ -5,7 +5,7 @@ use crate::split::{
use crate::ucred::{self, UCred};
use tokio_io::{AsyncRead, AsyncWrite};
use tokio_reactor::{Handle, PollEvented};
use tokio_net::{Handle, PollEvented};
use bytes::{Buf, BufMut};
use futures_core::ready;
@@ -131,7 +131,7 @@ impl TryFrom<UnixStream> for mio_uds::UnixStream {
/// Consumes value, returning the mio I/O object.
///
/// See [`tokio_reactor::PollEvented::into_inner`] for more details about
/// See [`tokio_net::PollEvented::into_inner`] for more details about
/// resource deregistration that happens during the call.
fn try_from(value: UnixStream) -> Result<Self, Self::Error> {
value.io.into_inner()