pub enum AddrFamily {
UnixOrLocal,
Inet,
Inet6,
Ipx,
Netlink,
X25,
Ax25,
Atmpvc,
Appletalk,
Packet,
Alg,
UnrecognizedConst(c_int),
}
Expand description
General address families for sockets
Variants§
Implementations§
Source§impl AddrFamily
impl AddrFamily
Sourcepub fn is_unrecognized(&self) -> bool
pub fn is_unrecognized(&self) -> bool
Check whether a given method is an unrecognized constant for the set of possible constants associated with the current type.
Trait Implementations§
Source§impl Clone for AddrFamily
impl Clone for AddrFamily
Source§fn clone(&self) -> AddrFamily
fn clone(&self) -> AddrFamily
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 AddrFamily
impl Debug for AddrFamily
Source§impl From<&AddrFamily> for c_int
impl From<&AddrFamily> for c_int
Source§fn from(enm: &AddrFamily) -> Self
fn from(enm: &AddrFamily) -> Self
Converts to this type from the input type.
Source§impl From<AddrFamily> for c_int
impl From<AddrFamily> for c_int
Source§fn from(enm: AddrFamily) -> Self
fn from(enm: AddrFamily) -> Self
Converts to this type from the input type.
Source§impl From<i32> for AddrFamily
impl From<i32> for AddrFamily
Source§impl<'lt> FromBytes<'lt> for AddrFamily
impl<'lt> FromBytes<'lt> for AddrFamily
Source§impl Hash for AddrFamily
impl Hash for AddrFamily
Source§impl Ord for AddrFamily
impl Ord for AddrFamily
Source§fn cmp(&self, other: &AddrFamily) -> Ordering
fn cmp(&self, other: &AddrFamily) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AddrFamily
impl PartialEq for AddrFamily
Source§impl PartialOrd for AddrFamily
impl PartialOrd for AddrFamily
Source§impl Size for AddrFamily
impl Size for AddrFamily
Source§fn unpadded_size(&self) -> usize
fn unpadded_size(&self) -> usize
Size of the unpadded data structure. This will usually
only be unaligned for variable length types like
strings or byte buffers.
Source§fn padded_size(&self) -> usize
fn padded_size(&self) -> usize
Get the size of of the payload and align it to
the required netlink byte alignment.
Source§impl ToBytes for AddrFamily
impl ToBytes for AddrFamily
Source§impl TypeSize for AddrFamily
impl TypeSize for AddrFamily
impl Copy for AddrFamily
impl Eq for AddrFamily
impl StructuralPartialEq for AddrFamily
Auto Trait Implementations§
impl Freeze for AddrFamily
impl RefUnwindSafe for AddrFamily
impl Send for AddrFamily
impl Sync for AddrFamily
impl Unpin for AddrFamily
impl UnwindSafe for AddrFamily
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