[−][src]Struct pcap_rs::Header
Header of the pcap file.
The type of frame contained in the records is described by the field network
.
Fields
major: u16
Major version of this file format.
minor: u16
Minor version of this file format.
this_zone: i32
The correction time in seconds between GMT (UTC) and the local timezone of the following packet header timestamps.
Examples: If the timestamps are in GMT (UTC), this_zone
is simply 0. If the timestamps are
in Central European time (Amsterdam, Berlin, ...) which is GMT + 1:00, this_zone
must be
-3600. In practice, time stamps are always in GMT, so this_zone
is always 0.
sigfigs: u32
In theory, the accuracy of time stamps in the capture; in practice, all tools set it to 0.
snaplen: u32
Maximum length of a captured packet. If the initial packet is bigger than this value it will be truncated.
network: LinkType
nano_sec: bool
endianness: Endianness
Trait Implementations
impl Debug for Header
[src]
impl PartialEq<Header> for Header
[src]
impl StructuralPartialEq for Header
[src]
Auto Trait Implementations
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,