pub struct AddressFamily(/* private fields */);
Implementations§
Source§impl AddressFamily
impl AddressFamily
pub const AF_UNSPEC: Self
pub const AF_UNIX: Self
pub const AF_LOCAL: Self
pub const AF_INET: Self
pub const AF_AX25: Self
pub const AF_IPX: Self
pub const AF_APPLETALK: Self
pub const AF_NETROM: Self
pub const AF_BRIDGE: Self
pub const AF_ATMPVC: Self
pub const AF_X25: Self
pub const AF_INET6: Self
pub const AF_ROSE: Self
pub const AF_DECnet: Self
pub const AF_NETBEUI: Self
pub const AF_SECURITY: Self
pub const AF_KEY: Self
pub const AF_NETLINK: Self
pub const AF_ROUTE: Self
pub const AF_PACKET: Self
pub const AF_ASH: Self
pub const AF_ECONET: Self
pub const AF_ATMSVC: Self
pub const AF_RDS: Self
pub const AF_SNA: Self
pub const AF_IRDA: Self
pub const AF_PPPOX: Self
pub const AF_WANPIPE: Self
pub const AF_LLC: Self
pub const AF_IB: Self
pub const AF_MPLS: Self
pub const AF_CAN: Self
pub const AF_TIPC: Self
pub const AF_BLUETOOTH: Self
pub const AF_IUCV: Self
pub const AF_RXRPC: Self
pub const AF_ISDN: Self
pub const AF_PHONET: Self
pub const AF_IEEE802154: Self
pub const AF_CAIF: Self
pub const AF_ALG: Self
pub const AF_NFC: Self
pub const AF_VSOCK: Self
pub const AF_KCM: Self
pub const AF_QIPCRTR: Self
pub const AF_SMC: Self
pub const AF_XDP: Self
pub const AF_MCTP: Self
pub const fn new(val: sa_family_t) -> Self
pub const fn val(&self) -> sa_family_t
pub const fn to_str(&self) -> Option<&'static str>
Trait Implementations§
Source§impl Clone for AddressFamily
impl Clone for AddressFamily
Source§fn clone(&self) -> AddressFamily
fn clone(&self) -> AddressFamily
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AddressFamily
impl Debug for AddressFamily
Source§impl Display for AddressFamily
impl Display for AddressFamily
Source§impl From<AddressFamily> for sa_family_t
impl From<AddressFamily> for sa_family_t
Source§fn from(val: AddressFamily) -> Self
fn from(val: AddressFamily) -> Self
Converts to this type from the input type.
Source§impl From<u16> for AddressFamily
impl From<u16> for AddressFamily
Source§fn from(val: sa_family_t) -> Self
fn from(val: sa_family_t) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AddressFamily
impl PartialEq for AddressFamily
impl Copy for AddressFamily
impl Eq for AddressFamily
impl StructuralPartialEq for AddressFamily
Auto Trait Implementations§
impl Freeze for AddressFamily
impl RefUnwindSafe for AddressFamily
impl Send for AddressFamily
impl Sync for AddressFamily
impl Unpin for AddressFamily
impl UnwindSafe for AddressFamily
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more