#[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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy 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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more