net: add TcpSocket for configuring a socket (#2920)

This enables the caller to configure the socket and to explicitly bind
the socket before converting it to a `TcpStream` or `TcpListener`.

Closes: #2902
This commit is contained in:
Carl Lerche
2020-10-07 13:02:29 -07:00
committed by GitHub
parent c248167173
commit a9a59ea90e
7 changed files with 418 additions and 2 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ fnv = { version = "1.0.6", optional = true }
futures-core = { version = "0.3.0", optional = true }
lazy_static = { version = "1.0.2", optional = true }
memchr = { version = "2.2", optional = true }
mio = { version = "0.7.2", optional = true }
mio = { version = "0.7.3", optional = true }
num_cpus = { version = "1.8.0", optional = true }
parking_lot = { version = "0.11.0", optional = true } # Not in full
slab = { version = "0.4.1", optional = true }