rustix::net::sockopt

Function get_socket_timeout

source
pub fn get_socket_timeout<Fd: AsFd>(
    fd: Fd,
    id: Timeout,
) -> Result<Option<Duration>>
Expand description

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

See the module-level documentation for more.