Struct tpacket_hdr
#[repr(C)]
pub struct tpacket_hdr { pub tp_status: c_ulong, pub tp_len: c_uint, pub tp_snaplen: c_uint, pub tp_mac: c_ushort, pub tp_net: c_ushort, pub tp_sec: c_uint, pub tp_usec: c_uint }
Fields
tp_status: c_ulongtp_len: c_uinttp_snaplen: c_uinttp_mac: c_ushorttp_net: c_ushorttp_sec: c_uinttp_usec: c_uint
Trait Implementations
impl Clone for tpacket_hdr
fn clone(&self) -> tpacket_hdr
impl Copy for tpacket_hdr
impl Debug for tpacket_hdr
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for tpacket_hdr
impl Hash for tpacket_hdr
fn hash<__H: Hasher>(&self, state: &mut __H)
impl PartialEq for tpacket_hdr
fn eq(&self, other: &tpacket_hdr) -> bool
impl StructuralPartialEq for tpacket_hdr
Auto Trait Implementations
impl Freeze for tpacket_hdr
impl RefUnwindSafe for tpacket_hdr
impl Send for tpacket_hdr
impl Sync for tpacket_hdr
impl Unpin for tpacket_hdr
impl UnsafeUnpin for tpacket_hdr
impl UnwindSafe for tpacket_hdr
Blanket Implementations
impl<T> Any for tpacket_hdr
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for tpacket_hdr
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for tpacket_hdr
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for tpacket_hdr
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for tpacket_hdr
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for tpacket_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 tpacket_hdr
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for tpacket_hdr
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>