net: mention that bind sets SO_REUSEADDR (#2454)

This commit is contained in:
Alice Ryhl
2020-04-28 19:44:33 +02:00
committed by GitHub
parent a819584849
commit a26d3aec96
+2
View File
@@ -87,6 +87,8 @@ impl TcpListener {
/// the addresses succeed in creating a listener, the error returned from
/// the last attempt (the last address) is returned.
///
/// This function sets the `SO_REUSEADDR` option on the socket.
///
/// # Examples
///
/// ```no_run