Function rustix::net::sockopt::set_socket_timeout
source · pub fn set_socket_timeout<Fd: AsFd>(
fd: Fd,
id: Timeout,
timeout: Option<Duration>
) -> Result<()>
Available on crate feature
net
only.Expand description
setsockopt(fd, SOL_SOCKET, id, timeout)
—Set the sending or receiving
timeout.