tcp: export Incoming type (#1602)

This commit is contained in:
Vojtech Kral 2019-10-02 20:12:05 +02:00 committed by Carl Lerche
parent c78c9168d7
commit aefaef3abf
2 changed files with 3 additions and 1 deletions

View File

@ -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;

View File

@ -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};