Enum neli::consts::rtnl::RtAddrFamily
source · pub enum RtAddrFamily {
Show 13 variants
Unspecified,
UnixOrLocal,
Inet,
Inet6,
Ipx,
Netlink,
X25,
Ax25,
Atmpvc,
Appletalk,
Packet,
Alg,
UnrecognizedConst(u8),
}
Expand description
General address families for sockets
Variants§
Unspecified
UnixOrLocal
Inet
Inet6
Ipx
Netlink
X25
Ax25
Atmpvc
Appletalk
Packet
Alg
UnrecognizedConst(u8)
Implementations§
source§impl RtAddrFamily
impl RtAddrFamily
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 RtAddrFamily
impl Clone for RtAddrFamily
source§fn clone(&self) -> RtAddrFamily
fn clone(&self) -> RtAddrFamily
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 RtAddrFamily
impl Debug for RtAddrFamily
source§impl From<&RtAddrFamily> for u8
impl From<&RtAddrFamily> for u8
source§fn from(enm: &RtAddrFamily) -> Self
fn from(enm: &RtAddrFamily) -> Self
Converts to this type from the input type.
source§impl From<RtAddrFamily> for u8
impl From<RtAddrFamily> for u8
source§fn from(enm: RtAddrFamily) -> Self
fn from(enm: RtAddrFamily) -> Self
Converts to this type from the input type.
source§impl From<u8> for RtAddrFamily
impl From<u8> for RtAddrFamily
source§impl<'lt> FromBytes<'lt> for RtAddrFamily
impl<'lt> FromBytes<'lt> for RtAddrFamily
source§impl Hash for RtAddrFamily
impl Hash for RtAddrFamily
source§impl Ord for RtAddrFamily
impl Ord for RtAddrFamily
source§fn cmp(&self, other: &RtAddrFamily) -> Ordering
fn cmp(&self, other: &RtAddrFamily) -> 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<RtAddrFamily> for RtAddrFamily
impl PartialEq<RtAddrFamily> for RtAddrFamily
source§fn eq(&self, other: &RtAddrFamily) -> bool
fn eq(&self, other: &RtAddrFamily) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<RtAddrFamily> for RtAddrFamily
impl PartialOrd<RtAddrFamily> for RtAddrFamily
source§fn partial_cmp(&self, other: &RtAddrFamily) -> Option<Ordering>
fn partial_cmp(&self, other: &RtAddrFamily) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Size for RtAddrFamily
impl Size for RtAddrFamily
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.