Struct rustix::net::AddressFamily
source · pub struct AddressFamily(/* private fields */);
Expand description
AF_*
constants for use with socket
, socket_with
, and
socketpair
.
Implementations§
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 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 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
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
)