Struct nlattr
#[repr(C)]
pub struct nlattr { pub nla_len: u16, pub nla_type: u16 }
Fields
nla_len: u16nla_type: u16
Trait Implementations
impl Clone for nlattr
fn clone(&self) -> Self
impl Copy for nlattr
impl Debug for nlattr
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for nlattr
impl Hash for nlattr
fn hash<__H: Hasher>(&self, state: &mut __H)
impl PartialEq for nlattr
fn eq(&self, other: &Self) -> bool
impl StructuralPartialEq for nlattr
Auto Trait Implementations
impl Freeze for nlattr
impl RefUnwindSafe for nlattr
impl Send for nlattr
impl Sync for nlattr
impl Unpin for nlattr
impl UnsafeUnpin for nlattr
impl UnwindSafe for nlattr
Blanket Implementations
impl<T> Any for nlattr
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for nlattr
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for nlattr
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for nlattr
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for nlattr
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for nlattr
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for nlattr
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for nlattr
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>