Struct linux_api::socket::AddressFamily
source · 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)