#[repr(transparent)]pub struct AddressFamily(pub(crate) RawAddressFamily);Expand description
AF_* constants for use with socket, socket_with, and
socketpair.
Tuple Fields§
§0: RawAddressFamilyImplementations§
Source§impl AddressFamily
 
impl AddressFamily
Sourcepub const IEEE802154: Self
 
pub const IEEE802154: Self
AF_IEEE802154
Sourcepub const fn from_raw(raw: RawAddressFamily) -> Self
 
pub const fn from_raw(raw: RawAddressFamily) -> Self
Constructs a AddressFamily from a raw integer.
Sourcepub const fn as_raw(self) -> RawAddressFamily
 
pub const fn as_raw(self) -> RawAddressFamily
Returns the raw integer for this AddressFamily.
Trait Implementations§
Source§impl Clone for AddressFamily
 
impl Clone for AddressFamily
Source§fn clone(&self) -> AddressFamily
 
fn clone(&self) -> AddressFamily
Returns a duplicate 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<'a, Num: ArgNumber> From<AddressFamily> for ArgReg<'a, Num>
 
impl<'a, Num: ArgNumber> From<AddressFamily> for ArgReg<'a, Num>
Source§fn from(family: AddressFamily) -> Self
 
fn from(family: AddressFamily) -> Self
Converts to this type from the input type.
Source§impl Hash for AddressFamily
 
impl Hash for AddressFamily
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