pub struct PcapHeader {
pub magic: u32,
pub version_major: u16,
pub version_minor: u16,
pub snaplen: u32,
pub network: u32,
pub big_endian: bool,
}Expand description
Global file header of a legacy PCAP capture.
Fields§
§magic: u32§version_major: u16§version_minor: u16§snaplen: u32§network: u32Link-layer header type (LINKTYPE_*). Only 1 (Ethernet) is
supported by iter_packets.
big_endian: boolTrait 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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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