pub enum NlmsgerrAttr {
Unused,
Msg,
Offset,
Cookie,
Policy,
UnrecognizedConst(u16),
}
Variants§
Unused
Msg
Error message string (string)
Offset
Offset of the invalid attribute in the original message, counting from the beginning of the header (u32)
Cookie
Arbitrary subsystem specific cookie to be used - in the success case - to identify a created object or operation or similar (binary)
Policy
Policy for a rejected attribute
UnrecognizedConst(u16)
Implementations§
Source§impl NlmsgerrAttr
impl NlmsgerrAttr
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 NlmsgerrAttr
impl Clone for NlmsgerrAttr
Source§fn clone(&self) -> NlmsgerrAttr
fn clone(&self) -> NlmsgerrAttr
Returns a duplicate 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 NlmsgerrAttr
impl Debug for NlmsgerrAttr
Source§impl From<&NlmsgerrAttr> for u16
impl From<&NlmsgerrAttr> for u16
Source§fn from(enm: &NlmsgerrAttr) -> Self
fn from(enm: &NlmsgerrAttr) -> Self
Converts to this type from the input type.
Source§impl From<NlmsgerrAttr> for NlAttrTypeWrapper
impl From<NlmsgerrAttr> for NlAttrTypeWrapper
Source§fn from(e: NlmsgerrAttr) -> Self
fn from(e: NlmsgerrAttr) -> Self
Converts to this type from the input type.
Source§impl From<NlmsgerrAttr> for u16
impl From<NlmsgerrAttr> for u16
Source§fn from(enm: NlmsgerrAttr) -> Self
fn from(enm: NlmsgerrAttr) -> Self
Converts to this type from the input type.
Source§impl From<u16> for NlmsgerrAttr
impl From<u16> for NlmsgerrAttr
Source§impl FromBytes for NlmsgerrAttr
impl FromBytes for NlmsgerrAttr
Source§impl Hash for NlmsgerrAttr
impl Hash for NlmsgerrAttr
Source§impl Ord for NlmsgerrAttr
impl Ord for NlmsgerrAttr
Source§fn cmp(&self, other: &NlmsgerrAttr) -> Ordering
fn cmp(&self, other: &NlmsgerrAttr) -> 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 NlmsgerrAttr
impl PartialEq for NlmsgerrAttr
Source§impl PartialOrd for NlmsgerrAttr
impl PartialOrd for NlmsgerrAttr
Source§impl Size for NlmsgerrAttr
impl Size for NlmsgerrAttr
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 the payload and align it to
the required netlink byte alignment.
Source§impl ToBytes for NlmsgerrAttr
impl ToBytes for NlmsgerrAttr
Source§impl TypeSize for NlmsgerrAttr
impl TypeSize for NlmsgerrAttr
impl Copy for NlmsgerrAttr
impl Eq for NlmsgerrAttr
impl NlAttrType for NlmsgerrAttr
impl StructuralPartialEq for NlmsgerrAttr
Auto Trait Implementations§
impl Freeze for NlmsgerrAttr
impl RefUnwindSafe for NlmsgerrAttr
impl Send for NlmsgerrAttr
impl Sync for NlmsgerrAttr
impl Unpin for NlmsgerrAttr
impl UnwindSafe for NlmsgerrAttr
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