pub fn socket_type<Fd: AsFd>(fd: Fd) -> Result<SocketType>Expand description
getsockopt(fd, SOL_SOCKET, SO_TYPE)—Returns the type of a socket.
See the module-level documentation for more.
pub fn socket_type<Fd: AsFd>(fd: Fd) -> Result<SocketType>getsockopt(fd, SOL_SOCKET, SO_TYPE)—Returns the type of a socket.
See the module-level documentation for more.