Struct linux_uapi::x86_64::tpacket2_hdr
source · #[repr(C)]pub struct tpacket2_hdr {
pub tp_status: __u32,
pub tp_len: __u32,
pub tp_snaplen: __u32,
pub tp_mac: __u16,
pub tp_net: __u16,
pub tp_sec: __u32,
pub tp_nsec: __u32,
pub tp_vlan_tci: __u16,
pub tp_vlan_tpid: __u16,
pub tp_padding: [__u8; 4],
}
Fields§
§tp_status: __u32
§tp_len: __u32
§tp_snaplen: __u32
§tp_mac: __u16
§tp_net: __u16
§tp_sec: __u32
§tp_nsec: __u32
§tp_vlan_tci: __u16
§tp_vlan_tpid: __u16
§tp_padding: [__u8; 4]
Trait Implementations§
source§impl Clone for tpacket2_hdr
impl Clone for tpacket2_hdr
source§fn clone(&self) -> tpacket2_hdr
fn clone(&self) -> tpacket2_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 tpacket2_hdr
impl Debug for tpacket2_hdr
source§impl Default for tpacket2_hdr
impl Default for tpacket2_hdr
source§fn default() -> tpacket2_hdr
fn default() -> tpacket2_hdr
Returns the “default value” for a type. Read more
source§impl FromBytes for tpacket2_hdr
impl FromBytes for tpacket2_hdr
§fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized + NoCell,
fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized + NoCell,
Interprets the prefix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized + NoCell,
fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized + NoCell,
Interprets the suffix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + IntoBytes + NoCell,
fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + IntoBytes + NoCell,
Interprets the prefix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + IntoBytes + NoCell,
fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + IntoBytes + NoCell,
Interprets the suffix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
source§impl FromZeros for tpacket2_hdr
impl FromZeros for tpacket2_hdr
source§impl IntoBytes for tpacket2_hdrwhere
__u32: IntoBytes,
__u16: IntoBytes,
[__u8; 4]: IntoBytes,
HasPadding<tpacket2_hdr, { _ }>: ShouldBe<false>,
impl IntoBytes for tpacket2_hdrwhere
__u32: IntoBytes,
__u16: IntoBytes,
[__u8; 4]: IntoBytes,
HasPadding<tpacket2_hdr, { _ }>: ShouldBe<false>,
impl Copy for tpacket2_hdr
Auto Trait Implementations§
impl Freeze for tpacket2_hdr
impl RefUnwindSafe for tpacket2_hdr
impl Send for tpacket2_hdr
impl Sync for tpacket2_hdr
impl Unpin for tpacket2_hdr
impl UnwindSafe for tpacket2_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