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

Function sock_fileno

crates/stdlib/src/socket.rs:3289–3300  ·  view source on GitHub ↗
(sock: &Socket)

Source from the content-addressed store, hash-verified

3287 }
3288 }
3289 pub(super) fn sock_fileno(sock: &Socket) -> RawSocket {
3290 #[cfg(unix)]
3291 {
3292 use std::os::unix::io::AsRawFd;
3293 sock.as_raw_fd()
3294 }
3295 #[cfg(windows)]
3296 {
3297 use std::os::windows::io::AsRawSocket;
3298 sock.as_raw_socket()
3299 }
3300 }
3301 fn into_sock_fileno(sock: Socket) -> RawSocket {
3302 #[cfg(unix)]
3303 {

Callers 8

sendmsg_afalgMethod · 0.85
recvmsgMethod · 0.85
filenoMethod · 0.85
getsockoptMethod · 0.85
setsockoptMethod · 0.85
ioctlMethod · 0.85
shareMethod · 0.85
sock_selectFunction · 0.85

Calls 1

as_raw_fdMethod · 0.45

Tested by

no test coverage detected