Struct rustix::net::AddressFamily
source · [−]#[repr(transparent)]pub struct AddressFamily(_);
Expand description
AF_*
constants.
Implementations
sourceimpl AddressFamily
impl AddressFamily
sourcepub const IEEE802154: Self
pub const IEEE802154: Self
AF_IEEE802154
sourcepub const fn from_raw(raw: sa_family_t) -> Self
pub const fn from_raw(raw: sa_family_t) -> Self
Constructs a AddressFamily
from a raw integer.
sourcepub const fn as_raw(self) -> sa_family_t
pub const fn as_raw(self) -> sa_family_t
Returns the raw integer for this AddressFamily
.
Trait Implementations
sourceimpl Clone for AddressFamily
impl Clone for AddressFamily
sourcefn clone(&self) -> AddressFamily
fn clone(&self) -> AddressFamily
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AddressFamily
impl Debug for AddressFamily
sourceimpl Hash for AddressFamily
impl Hash for AddressFamily
sourceimpl PartialEq<AddressFamily> for AddressFamily
impl PartialEq<AddressFamily> for AddressFamily
sourcefn eq(&self, other: &AddressFamily) -> bool
fn eq(&self, other: &AddressFamily) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AddressFamily) -> bool
fn ne(&self, other: &AddressFamily) -> bool
This method tests for !=
.
impl Copy for AddressFamily
impl Eq for AddressFamily
impl StructuralEq for AddressFamily
impl StructuralPartialEq for AddressFamily
Auto Trait Implementations
impl RefUnwindSafe for AddressFamily
impl Send for AddressFamily
impl Sync for AddressFamily
impl Unpin for AddressFamily
impl UnwindSafe for AddressFamily
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more