Struct genlmsghdr

#[repr(C)]
pub struct genlmsghdr { pub cmd: u8, pub version: u8, pub reserved: u16 }

Fields

cmd: u8
version: u8
reserved: u16

Trait Implementations

impl Clone for genlmsghdr

fn clone(&self) -> genlmsghdr

impl Copy for genlmsghdr

impl Debug for genlmsghdr

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Eq for genlmsghdr

impl Hash for genlmsghdr

fn hash<__H: Hasher>(&self, state: &mut __H)

impl PartialEq for genlmsghdr

fn eq(&self, other: &genlmsghdr) -> bool

impl StructuralPartialEq for genlmsghdr

Auto Trait Implementations

impl Freeze for genlmsghdr

impl RefUnwindSafe for genlmsghdr

impl Send for genlmsghdr

impl Sync for genlmsghdr

impl Unpin for genlmsghdr

impl UnsafeUnpin for genlmsghdr

impl UnwindSafe for genlmsghdr

Blanket Implementations

impl<T> Any for genlmsghdr where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for genlmsghdr where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for genlmsghdr where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for genlmsghdr where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for genlmsghdr

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for genlmsghdr where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for genlmsghdr where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for genlmsghdr where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>