We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a1a73d commit 3531f18Copy full SHA for 3531f18
text/0000-close-trait.md
@@ -163,6 +163,13 @@ impl<R: Close<Error = io::Error> + Write> Close for BufWriter<R> {
163
}
164
```
165
166
+## TCPStream and UDPSocket
167
+
168
+In a very similar way to a `File`, these two structs can implement `Close`. The
169
+outer, facade layer implements it by delegating to the inner. On each operating
170
+system we implement the `Close` trait for the wrapped version. The os-specific
171
+implementations are constructed in nearly the same way as for `File`s.
172
173
# Drawbacks
174
[drawbacks]: #drawbacks
175
0 commit comments