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

Function get_socket_timeout

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

getsockopt(fd, SOL_SOCKET, id)—Get the sending or receiving timeout.

See the module-level documentation for more.