pub enum PcapFileType {
Pcap,
PcapNg,
}Expand description
PcapFileType is the type of the pcap file, either Pcap or PcapNg
Variants§
Implementations§
Source§impl PcapFileType
impl PcapFileType
Sourcepub fn from_magic(magic: [u8; 4]) -> Option<Self>
pub fn from_magic(magic: [u8; 4]) -> Option<Self>
Returns the PcapFileType from the magic number
Trait Implementations§
Source§impl Clone for PcapFileType
impl Clone for PcapFileType
Source§fn clone(&self) -> PcapFileType
fn clone(&self) -> PcapFileType
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 PcapFileType
impl Debug for PcapFileType
Source§impl Display for PcapFileType
impl Display for PcapFileType
Source§impl PartialEq for PcapFileType
impl PartialEq for PcapFileType
impl Copy for PcapFileType
impl Eq for PcapFileType
impl StructuralPartialEq for PcapFileType
Auto Trait Implementations§
impl Freeze for PcapFileType
impl RefUnwindSafe for PcapFileType
impl Send for PcapFileType
impl Sync for PcapFileType
impl Unpin for PcapFileType
impl UnwindSafe for PcapFileType
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