diff options
| author | Corey Farwell <coreyf@rwell.org> | 2016-08-01 20:16:56 -0400 |
|---|---|---|
| committer | Corey Farwell <coreyf@rwell.org> | 2016-08-01 20:16:56 -0400 |
| commit | 57e3b9eb713f44a9dce97be5840c536bd7a86069 (patch) | |
| tree | 3ab8a160c41cefa93734cb5f60c9f4a0118cc7e3 /src/libstd/net | |
| parent | 28ce3e8a55b21a285f7075612d140a44b42eb889 (diff) | |
| download | rust-57e3b9eb713f44a9dce97be5840c536bd7a86069.tar.gz rust-57e3b9eb713f44a9dce97be5840c536bd7a86069.zip | |
Indicate where the `std::net::Incoming` struct is created.
Diffstat (limited to 'src/libstd/net')
| -rw-r--r-- | src/libstd/net/tcp.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libstd/net/tcp.rs b/src/libstd/net/tcp.rs index 5ab0d5a0877..76617f15970 100644 --- a/src/libstd/net/tcp.rs +++ b/src/libstd/net/tcp.rs @@ -77,6 +77,11 @@ pub struct TcpListener(net_imp::TcpListener); /// /// This iterator will infinitely yield `Some` of the accepted connections. It /// is equivalent to calling `accept` in a loop. +/// +/// This `struct` is created by the [`incoming`] method on [`TcpListener`]. +/// +/// [`incoming`]: struct.TcpListener.html#method.incoming +/// [`TcpListener`]: struct.TcpListener.html #[stable(feature = "rust1", since = "1.0.0")] pub struct Incoming<'a> { listener: &'a TcpListener } |
