#[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_ulong
§tp_len: c_uint
§tp_snaplen: c_uint
§tp_mac: c_ushort
§tp_net: c_ushort
§tp_sec: c_uint
§tp_usec: c_uint
Trait Implementations§
Source§impl Clone for tpacket_hdr
impl Clone for tpacket_hdr
Source§fn clone(&self) -> tpacket_hdr
fn clone(&self) -> tpacket_hdr
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for tpacket_hdr
impl Debug for tpacket_hdr
Source§impl Hash for tpacket_hdr
impl Hash for tpacket_hdr
Source§impl PartialEq for tpacket_hdr
impl PartialEq for tpacket_hdr
impl Copy for tpacket_hdr
impl Eq for tpacket_hdr
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 UnwindSafe for tpacket_hdr
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)