MCPcopy Index your code
hub / github.com/RustPython/RustPython / into_sock_fileno

Function into_sock_fileno

crates/stdlib/src/socket.rs:3301–3312  ·  view source on GitHub ↗
(sock: Socket)

Source from the content-addressed store, hash-verified

3299 }
3300 }
3301 fn into_sock_fileno(sock: Socket) -> RawSocket {
3302 #[cfg(unix)]
3303 {
3304 use std::os::unix::io::IntoRawFd;
3305 sock.into_raw_fd()
3306 }
3307 #[cfg(windows)]
3308 {
3309 use std::os::windows::io::IntoRawSocket;
3310 sock.into_raw_socket()
3311 }
3312 }
3313
3314 pub(super) const INVALID_SOCKET: RawSocket = {
3315 #[cfg(unix)]

Callers 4

_acceptMethod · 0.85
closeMethod · 0.85
detachMethod · 0.85
dupFunction · 0.85

Calls 1

into_raw_fdMethod · 0.45

Tested by

no test coverage detected