#[repr(C)]pub struct PcapHeader {
pub magic: u32,
pub version_major: u16,
pub version_minor: u16,
pub thiszone: i32,
pub sigfigs: u32,
pub snaplen: u32,
pub network: u32,
}Expand description
PCAP global header (24 bytes)
Fields§
§magic: u32Magic number (determines byte order and timestamp precision)
version_major: u16Major version number
version_minor: u16Minor version number
thiszone: i32Timestamp timezone (unused in practice)
sigfigs: u32Timestamp accuracy (unused in practice)
snaplen: u32Maximum packet length
network: u32Link layer type
Implementations§
Trait Implementations§
Source§impl Clone for PcapHeader
impl Clone for PcapHeader
Source§fn clone(&self) -> PcapHeader
fn clone(&self) -> PcapHeader
Returns a duplicate 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 PcapHeader
impl Debug for PcapHeader
impl Copy for PcapHeader
Auto Trait Implementations§
impl Freeze for PcapHeader
impl RefUnwindSafe for PcapHeader
impl Send for PcapHeader
impl Sync for PcapHeader
impl Unpin for PcapHeader
impl UnsafeUnpin for PcapHeader
impl UnwindSafe for PcapHeader
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