mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-10-01 12:20:39 +00:00
tcp: export Incoming type (#1602)
This commit is contained in:
parent
c78c9168d7
commit
aefaef3abf
@ -23,5 +23,7 @@ mod listener;
|
||||
pub mod split;
|
||||
mod stream;
|
||||
|
||||
#[cfg(feature = "async-traits")]
|
||||
pub use self::incoming::Incoming;
|
||||
pub use self::listener::TcpListener;
|
||||
pub use self::stream::TcpStream;
|
||||
|
@ -40,7 +40,7 @@ pub mod tcp {
|
||||
//! [`TcpListener`]: struct.TcpListener.html
|
||||
//! [incoming_method]: struct.TcpListener.html#method.incoming
|
||||
//! [`Incoming`]: struct.Incoming.html
|
||||
pub use tokio_net::tcp::{split, TcpListener, TcpStream};
|
||||
pub use tokio_net::tcp::{split, Incoming, TcpListener, TcpStream};
|
||||
}
|
||||
#[cfg(feature = "tcp")]
|
||||
pub use self::tcp::{TcpListener, TcpStream};
|
||||
|
Loading…
x
Reference in New Issue
Block a user