Module types

Source
Expand description

Types and constants for rustix::net.

Modules§

eth
ETH_P_* constants.
ipproto
IPPROTO_* constants.
netlink
NETLINK_* constants.
sysproto
SYSPROTO_* constants.
xdp
AF_XDP related types and constants.

Structs§

AddressFamily
AF_* constants for use with socket, socket_with, and socketpair.
Protocol
IPPROTO_* and other constants for use with socket, socket_with, and socketpair when a nondefault value is desired.
SocketFlags
SOCK_* constants for use with socket_with, accept_with and acceptfrom_with.
SocketType
SOCK_* constants for use with socket.
UCred
UNIX credentials of socket peer, for use with get_socket_peercred SendAncillaryMessage::ScmCredentials and RecvAncillaryMessage::ScmCredentials.

Enums§

Shutdown
SHUT_* constants for use with shutdown.

Functions§

new_raw_protocol 🔒

Type Aliases§

RawAddressFamily
A type for holding raw integer address families.
RawProtocol
A type for holding raw integer protocols.
RawSocketType
A type for holding raw integer socket types.