Enum neli::consts::socket::AddrFamily
source · 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<AddrFamily> for AddrFamily
impl PartialEq<AddrFamily> for AddrFamily
source§fn eq(&self, other: &AddrFamily) -> bool
fn eq(&self, other: &AddrFamily) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<AddrFamily> for AddrFamily
impl PartialOrd<AddrFamily> for AddrFamily
source§fn partial_cmp(&self, other: &AddrFamily) -> Option<Ordering>
fn partial_cmp(&self, other: &AddrFamily) -> 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 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.