#[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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes