Skip to content

Commit

Permalink
tcp: export Incoming type (#1602)
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtechkral authored and carllerche committed Oct 2, 2019
1 parent c78c916 commit aefaef3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tokio-net/src/tcp/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
2 changes: 1 addition & 1 deletion tokio/src/net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit aefaef3

Please sign in to comment.