Struct libc::tpacket_hdr
source · #[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 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§
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)