Function rustix::net::sockopt::get_socket_timeout
source · 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.