pub struct PcapFileHeader {
pub magic_number_and_endianness: MagicNumberAndEndianness,
pub version: Version,
pub timezone: u32,
pub sig_figs: u32,
pub snap_length: u32,
pub link_type: LinkType,
}Expand description
Represents the file header of a pcap file
Fields§
§magic_number_and_endianness: MagicNumberAndEndiannessFirst 4 bytes are the magic number and endianness
version: VersionThe version of the pcap file format Bytes 4..8
timezone: u32The timezone offset Bytes 8..12
sig_figs: u32The number of significant figures Bytes 12..16
snap_length: u32The maximum byte length of captured packets
Bytes 16..20
link_type: LinkTypeThe link type of the captured packets Bytes 20..24
Implementations§
Trait Implementations§
Source§impl Clone for PcapFileHeader
impl Clone for PcapFileHeader
Source§fn clone(&self) -> PcapFileHeader
fn clone(&self) -> PcapFileHeader
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 PcapFileHeader
impl Debug for PcapFileHeader
Source§impl Default for PcapFileHeader
impl Default for PcapFileHeader
Source§impl<'a> From<&'a PcapFileHeader> for [u8; 24]
impl<'a> From<&'a PcapFileHeader> for [u8; 24]
Source§fn from(value: &'a PcapFileHeader) -> Self
fn from(value: &'a PcapFileHeader) -> Self
Converts to this type from the input type.
Source§impl From<PcapFileHeader> for [u8; 24]
impl From<PcapFileHeader> for [u8; 24]
Source§fn from(value: PcapFileHeader) -> Self
fn from(value: PcapFileHeader) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PcapFileHeader
impl PartialEq for PcapFileHeader
impl Copy for PcapFileHeader
impl Eq for PcapFileHeader
impl StructuralPartialEq for PcapFileHeader
Auto Trait Implementations§
impl Freeze for PcapFileHeader
impl RefUnwindSafe for PcapFileHeader
impl Send for PcapFileHeader
impl Sync for PcapFileHeader
impl Unpin for PcapFileHeader
impl UnwindSafe for PcapFileHeader
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