mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-30 00:00:16 +02:00
tcp: export Incoming type (#1602)
This commit is contained in:
committed by
Carl Lerche
parent
c78c9168d7
commit
aefaef3abf
@@ -23,5 +23,7 @@ mod listener;
|
|||||||
pub mod split;
|
pub mod split;
|
||||||
mod stream;
|
mod stream;
|
||||||
|
|
||||||
|
#[cfg(feature = "async-traits")]
|
||||||
|
pub use self::incoming::Incoming;
|
||||||
pub use self::listener::TcpListener;
|
pub use self::listener::TcpListener;
|
||||||
pub use self::stream::TcpStream;
|
pub use self::stream::TcpStream;
|
||||||
|
|||||||
+1
-1
@@ -40,7 +40,7 @@ pub mod tcp {
|
|||||||
//! [`TcpListener`]: struct.TcpListener.html
|
//! [`TcpListener`]: struct.TcpListener.html
|
||||||
//! [incoming_method]: struct.TcpListener.html#method.incoming
|
//! [incoming_method]: struct.TcpListener.html#method.incoming
|
||||||
//! [`Incoming`]: struct.Incoming.html
|
//! [`Incoming`]: struct.Incoming.html
|
||||||
pub use tokio_net::tcp::{split, TcpListener, TcpStream};
|
pub use tokio_net::tcp::{split, Incoming, TcpListener, TcpStream};
|
||||||
}
|
}
|
||||||
#[cfg(feature = "tcp")]
|
#[cfg(feature = "tcp")]
|
||||||
pub use self::tcp::{TcpListener, TcpStream};
|
pub use self::tcp::{TcpListener, TcpStream};
|
||||||
|
|||||||
Reference in New Issue
Block a user