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 for RtAddrFamily
impl PartialEq for RtAddrFamily
Source§impl PartialOrd for RtAddrFamily
impl PartialOrd for RtAddrFamily
Source§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.
Source§impl ToBytes for RtAddrFamily
impl ToBytes for RtAddrFamily
Source§impl TypeSize for RtAddrFamily
impl TypeSize for RtAddrFamily
impl Copy for RtAddrFamily
impl Eq for RtAddrFamily
impl StructuralPartialEq for RtAddrFamily
Auto Trait Implementations§
impl Freeze for RtAddrFamily
impl RefUnwindSafe for RtAddrFamily
impl Send for RtAddrFamily
impl Sync for RtAddrFamily
impl Unpin for RtAddrFamily
impl UnwindSafe for RtAddrFamily
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