devela::_dep::rustix::net::sockopt

Function set_socket_timeout

pub fn set_socket_timeout<Fd>(
    fd: Fd,
    id: Timeout,
    value: Option<Duration>,
) -> Result<(), Errno> 
where Fd: AsFd,
Available on crate feature dep_rustix only.
Expand description

setsockopt(fd, SOL_SOCKET, id, value)—Set the sending or receiving timeout.

See the module-level documentation for more.