Enum nix::sys::socket::AddressFamily [−][src]
#[repr(i32)] pub enum AddressFamily {}Show 23 variants
Unix, Inet, Inet6, System, Ipx, AppleTalk, Decnet, Sna, Isdn, ImpLink, Pup, Chaos, Ns, Iso, Datakit, Ccitt, Dli, Lat, Hylink, Link, Coip, Cnt, Natm,
Expand description
These constants specify the protocol family to be used
in socket
and socketpair
Variants
Local communication (see unix(7)
)
IPv4 Internet protocols (see ip(7)
)
IPv6 Internet protocols (see ipv6(7)
)
KEXT Controls and Notifications
IPX - Novell protocols
AppleTalk
Implementations
Create a new AddressFamily
from an integer value retrieved from libc
, usually from
the sa_family
field of a sockaddr
.
Currently only supports these address families: Unix, Inet (v4 & v6), Netlink, Link/Packet and System. Returns None for unsupported or unknown address families.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AddressFamily
impl Send for AddressFamily
impl Sync for AddressFamily
impl Unpin for AddressFamily
impl UnwindSafe for AddressFamily
Blanket Implementations
Mutably borrows from an owned value. Read more