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 a23ca7c commit 1c6bf04Copy full SHA for 1c6bf04
library/std/src/os/windows/io/socket.rs
@@ -98,7 +98,7 @@ impl FromRawSocket for OwnedSocket {
98
/// # Safety
99
///
100
/// The resource pointed to by `raw` must be open and suitable for assuming
101
- /// ownership.
+ /// ownership. The resource must not require cleanup other than `closesocket`.
102
#[inline]
103
unsafe fn from_raw_socket(raw: RawSocket) -> Self {
104
debug_assert_ne!(raw, c::INVALID_SOCKET as RawSocket);
0 commit comments