We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
OwnedSocket::from_raw_socket
1 parent f88fb2a commit ba6050fCopy full SHA for ba6050f
library/std/src/os/windows/io/socket.rs
@@ -168,13 +168,6 @@ impl IntoRawSocket for OwnedSocket {
168
}
169
170
impl FromRawSocket for OwnedSocket {
171
- /// Constructs a new instance of `Self` from the given raw socket.
172
- ///
173
- /// # Safety
174
175
- /// The resource pointed to by `socket` must be open and suitable for
176
- /// assuming ownership. The resource must not require cleanup other than
177
- /// `closesocket`.
178
#[inline]
179
unsafe fn from_raw_socket(socket: RawSocket) -> Self {
180
debug_assert_ne!(socket, c::INVALID_SOCKET as RawSocket);
0 commit comments