pub fn get_socket_timeout<Fd: AsFd>(
fd: Fd,
id: Timeout,
) -> Result<Option<Duration>>
Available on crate feature
net
only.Expand description
getsockopt(fd, SOL_SOCKET, id)
—Get the sending or receiving timeout.
See the module-level documentation for more.