mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-07 00:00:08 +02:00
net: clarify socket gets closed on drop (#7526)
This commit is contained in:
@@ -19,6 +19,8 @@ cfg_net! {
|
|||||||
///
|
///
|
||||||
/// A `TcpListener` can be turned into a `Stream` with [`TcpListenerStream`].
|
/// A `TcpListener` can be turned into a `Stream` with [`TcpListenerStream`].
|
||||||
///
|
///
|
||||||
|
/// The socket will be closed when the value is dropped.
|
||||||
|
///
|
||||||
/// [`TcpListenerStream`]: https://docs.rs/tokio-stream/0.1/tokio_stream/wrappers/struct.TcpListenerStream.html
|
/// [`TcpListenerStream`]: https://docs.rs/tokio-stream/0.1/tokio_stream/wrappers/struct.TcpListenerStream.html
|
||||||
///
|
///
|
||||||
/// # Errors
|
/// # Errors
|
||||||
|
|||||||
Reference in New Issue
Block a user