Struct tpacket3_hdr

#[repr(C)]
pub struct tpacket3_hdr { pub tp_next_offset: u32, pub tp_sec: u32, pub tp_nsec: u32, pub tp_snaplen: u32, pub tp_len: u32, pub tp_status: u32, pub tp_mac: u16, pub tp_net: u16, pub hv1: tpacket_hdr_variant1, pub tp_padding: [u8; 8] }

Fields

tp_next_offset: u32
tp_sec: u32
tp_nsec: u32
tp_snaplen: u32
tp_len: u32
tp_status: u32
tp_mac: u16
tp_net: u16
hv1: tpacket_hdr_variant1
tp_padding: [u8; 8]

Trait Implementations

impl Clone for tpacket3_hdr

fn clone(&self) -> tpacket3_hdr

impl Copy for tpacket3_hdr

impl Debug for tpacket3_hdr

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

impl Eq for tpacket3_hdr

impl Hash for tpacket3_hdr

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

impl PartialEq for tpacket3_hdr

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

impl StructuralPartialEq for tpacket3_hdr

Auto Trait Implementations

impl Freeze for tpacket3_hdr

impl RefUnwindSafe for tpacket3_hdr

impl Send for tpacket3_hdr

impl Sync for tpacket3_hdr

impl Unpin for tpacket3_hdr

impl UnsafeUnpin for tpacket3_hdr

impl UnwindSafe for tpacket3_hdr

Blanket Implementations

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

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

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

impl<T> From<T> for tpacket3_hdr

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for tpacket3_hdr 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 tpacket3_hdr where U: Into<T>,

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

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

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