tcp: export Incoming type (#1602)

This commit is contained in:
Vojtech Kral
2019-10-02 11:12:05 -07:00
committed by Carl Lerche
parent c78c9168d7
commit aefaef3abf
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -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
View File
@@ -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};