Struct rustix::net::AddressFamily
#[repr(transparent)]
pub struct AddressFamily(_);Documentation
AF_* constants.
Implementations
impl AddressFamily
const UNSPEC: Self = _
AF_UNSPEC
const INET: Self = _
AF_INET
const INET6: Self = _
AF_INET6
const NETLINK: Self = _
AF_NETLINK
const UNIX: Self = _
AF_UNIX, aka AF_LOCAL
const AX25: Self = _
AF_AX25
const IPX: Self = _
AF_IPX
const APPLETALK: Self = _
AF_APPLETALK
const NETROM: Self = _
AF_NETROM
const BRIDGE: Self = _
AF_BRIDGE
const ATMPVC: Self = _
AF_ATMPVC
const X25: Self = _
AF_X25
const ROSE: Self = _
AF_ROSE
const DECnet: Self = _
AF_DECnet
const NETBEUI: Self = _
AF_NETBEUI
const SECURITY: Self = _
AF_SECURITY
const KEY: Self = _
AF_KEY
const PACKET: Self = _
AF_PACKET
const ASH: Self = _
AF_ASH
const ECONET: Self = _
AF_ECONET
const ATMSVC: Self = _
AF_ATMSVC
const RDS: Self = _
AF_RDS
const SNA: Self = _
AF_SNA
const IRDA: Self = _
AF_IRDA
const PPPOX: Self = _
AF_PPPOX
const WANPIPE: Self = _
AF_WANPIPE
const LLC: Self = _
AF_LLC
const CAN: Self = _
AF_CAN
const TIPC: Self = _
AF_TIPC
const BLUETOOTH: Self = _
AF_BLUETOOTH
const IUCV: Self = _
AF_IUCV
const RXRPC: Self = _
AF_RXRPC
const ISDN: Self = _
AF_ISDN
const PHONET: Self = _
AF_PHONET
const IEEE802154: Self = _
AF_IEEE802154
pub const fn from_raw(raw: linux_raw_sys::general::__kernel_sa_family_t) -> Self
Constructs a AddressFamily from a raw integer.
pub const fn as_raw(Self) -> linux_raw_sys::general::__kernel_sa_family_t
Returns the raw integer for this AddressFamily.
Trait Implementations
impl Clone for AddressFamily
fn clone(&Self) -> AddressFamilyimpl Copy for AddressFamilyimpl Debug for AddressFamily
fn fmt(&Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Resultimpl Eq for AddressFamilyimpl Hash for AddressFamily
fn hash<__H: $crate::hash::Hasher>(&Self, state: &mut __H) -> ()impl PartialEq<AddressFamily> for AddressFamily
fn eq(&Self, other: &AddressFamily) -> boolfn ne(&Self, other: &AddressFamily) -> boolimpl StructuralEq for AddressFamilyimpl StructuralPartialEq for AddressFamilyAuto Trait Implementations
impl RefUnwindSafe for AddressFamilyimpl Send for AddressFamilyimpl Sync for AddressFamilyimpl Unpin for AddressFamilyimpl UnwindSafe for AddressFamilyBlanket Implementations
impl<T> BorrowMut<T> for T
where
T: ?Sized,
where
T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T