Function rustix::net::sockopt::get_socket_timeout

pub fn get_socket_timeout<Fd: AsFd>(fd: &Fd, id: Timeout) -> io::Result<Option<Duration>>
Documentation

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

References