pub fn socket_timeout<Fd: AsFd>(fd: Fd, id: Timeout) -> Result<Option<Duration>>
getsockopt(fd, SOL_SOCKET, id)—Get the sending or receiving timeout.
getsockopt(fd, SOL_SOCKET, id)
See the module-level documentation for more.