Module rustix::net::sockopt  
Documentation
getsockopt and setsockopt functions.
In the rustix API, there is a separate function for each option, so that it can be given an option-specific type signature.
Enums
Timeout identifier for use with set_socket_timeout and
get_socket_timeout.
Functions
getsockopt(fd, IPPROTO_IP, IP_MULTICAST_LOOP)
getsockopt(fd, IPPROTO_IP, IP_MULTICAST_TTL)
getsockopt(fd, IPPROTO_IP, IP_TTL)
getsockopt(fd, IPPROTO_IPV6, IPV6_MULTICAST_LOOP)
getsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY)
getsockopt(fd, SOL_SOCKET, SO_BROADCAST)
getsockopt(fd, SOL_SOCKET, SO_LINGER)
get_socket_passcred any(target_os = "android", target_os = "linux")
getsockopt(fd, SOL_SOCKET, SO_PASSCRED)
getsockopt(fd, SOL_SOCKET, id)—Get the sending or receiving timeout.
getsockopt(fd, SOL_SOCKET, SO_TYPE)—Returns the type of a socket.
getsockopt(fd, IPPROTO_TCP, TCP_NODELAY)
setsockopt(fd, IPPROTO_IP, IP_ADD_MEMBERSHIP, multiaddr, interface)
setsockopt(fd, IPPROTO_IP, IP_DROP_MEMBERSHIP, multiaddr, interface)
setsockopt(fd, IPPROTO_IP, IP_MULTICAST_LOOP, multicast_loop)
setsockopt(fd, IPPROTO_IP, IP_MULTICAST_TTL, multicast_ttl)
setsockopt(fd, IPPROTO_IP, IP_TTL, ttl)
setsockopt(fd, IPPROTO_IPV6, IPV6_ADD_MEMBERSHIP, multiaddr, interface)
setsockopt(fd, IPPROTO_IPV6, IPV6_DROP_MEMBERSHIP, multiaddr, interface)
setsockopt(fd, IPPROTO_IPV6, IPV6_MULTICAST_LOOP, multicast_loop)
setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, only_v6)
setsockopt(fd, SOL_SOCKET, SO_BROADCAST, broadcast)
setsockopt(fd, SOL_SOCKET, SO_LINGER, linger)
set_socket_passcred any(target_os = "android", target_os = "linux")
setsockopt(fd, SOL_SOCKET, SO_PASSCRED, passcred)
setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, value)
setsockopt(fd, SOL_SOCKET, id, timeout)—Set the sending
or receiving timeout.
setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, nodelay)