pub fn get_socket_error<Fd: AsFd>(fd: Fd) -> Result<Result<(), Errno>>
getsockopt(fd, SOL_SOCKET, SO_ERROR)
See the module-level documentation for more.