Struct tpacket2_hdr
#[repr(C)]
pub struct tpacket2_hdr { pub tp_status: u32, pub tp_len: u32, pub tp_snaplen: u32, pub tp_mac: u16, pub tp_net: u16, pub tp_sec: u32, pub tp_nsec: u32, pub tp_vlan_tci: u16, pub tp_vlan_tpid: u16, pub tp_padding: [u8; 4] }
Fields
tp_status: u32tp_len: u32tp_snaplen: u32tp_mac: u16tp_net: u16tp_sec: u32tp_nsec: u32tp_vlan_tci: u16tp_vlan_tpid: u16tp_padding: [u8; 4]
Trait Implementations
impl Clone for tpacket2_hdr
fn clone(&self) -> tpacket2_hdr
impl Copy for tpacket2_hdr
impl Debug for tpacket2_hdr
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for tpacket2_hdr
impl Hash for tpacket2_hdr
fn hash<__H: Hasher>(&self, state: &mut __H)
impl PartialEq for tpacket2_hdr
fn eq(&self, other: &tpacket2_hdr) -> bool
impl StructuralPartialEq for tpacket2_hdr
Auto Trait Implementations
impl Freeze for tpacket2_hdr
impl RefUnwindSafe for tpacket2_hdr
impl Send for tpacket2_hdr
impl Sync for tpacket2_hdr
impl Unpin for tpacket2_hdr
impl UnsafeUnpin for tpacket2_hdr
impl UnwindSafe for tpacket2_hdr
Blanket Implementations
impl<T> Any for tpacket2_hdr
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for tpacket2_hdr
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for tpacket2_hdr
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for tpacket2_hdr
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for tpacket2_hdr
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for tpacket2_hdr
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 tpacket2_hdr
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for tpacket2_hdr
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>