pub fn get_socket_family(fd: i32) -> Result<SocketFamily>Expand description
Determines the address family of an open socket file descriptor on Unix.
IPv4 and IPv6 descriptors return SocketFamily::Inet, and Unix-domain
descriptors return SocketFamily::Unix. Socket inspection failures,
missing families, and unsupported families are returned as errors.