pub struct Version {
pub major: u16,
pub minor: u16,
}Expand description
Represents the version of the pcap file format
Also used in pcap-ng files for the section header block
Fields§
§major: u16Major version
minor: u16Minor version
Implementations§
Source§impl Version
impl Version
Sourcepub const PCAP_VERSION_2_4: Version
pub const PCAP_VERSION_2_4: Version
The current version of libpcap is 2.4
Sourcepub const PCAP_VERSION_2_3: Version
pub const PCAP_VERSION_2_3: Version
The libpcap version 2.3
Trait Implementations§
Source§impl Ord for Version
impl Ord for Version
Source§impl PartialOrd for Version
impl PartialOrd for Version
impl Copy for Version
impl Eq for Version
impl StructuralPartialEq for Version
Auto Trait Implementations§
impl Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnwindSafe for Version
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