pub fn set_socket_timeout<Fd: AsFd>( fd: Fd, id: Timeout, timeout: Option<Duration>) -> Result<()>
setsockopt(fd, SOL_SOCKET, id, timeout)—Set the sending or receiving timeout.
setsockopt(fd, SOL_SOCKET, id, timeout)
setsockopt
sys/socket.h
socket
SOL_SOCKET