pub enum PcapLinkType {
Ethernet,
Ip,
Ieee802154WithoutFcs,
Unknown(u32),
}
Expand description
Captured packet header type.
Variants§
Ethernet
Ethernet frames
Ip
IPv4 or IPv6 packets (depending on the version field)
Ieee802154WithoutFcs
IEEE 802.15.4 packets without FCS.
Unknown(u32)
Trait Implementations§
Source§impl Clone for PcapLinkType
impl Clone for PcapLinkType
Source§fn clone(&self) -> PcapLinkType
fn clone(&self) -> PcapLinkType
Returns a copy 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 PcapLinkType
impl Debug for PcapLinkType
Source§impl From<PcapLinkType> for u32
impl From<PcapLinkType> for u32
Source§fn from(value: PcapLinkType) -> Self
fn from(value: PcapLinkType) -> Self
Converts to this type from the input type.
Source§impl From<u32> for PcapLinkType
impl From<u32> for PcapLinkType
Source§impl Hash for PcapLinkType
impl Hash for PcapLinkType
Source§impl Ord for PcapLinkType
impl Ord for PcapLinkType
Source§fn cmp(&self, other: &PcapLinkType) -> Ordering
fn cmp(&self, other: &PcapLinkType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PcapLinkType
impl PartialEq for PcapLinkType
Source§impl PartialOrd for PcapLinkType
impl PartialOrd for PcapLinkType
impl Copy for PcapLinkType
impl Eq for PcapLinkType
impl StructuralPartialEq for PcapLinkType
Auto Trait Implementations§
impl Freeze for PcapLinkType
impl RefUnwindSafe for PcapLinkType
impl Send for PcapLinkType
impl Sync for PcapLinkType
impl Unpin for PcapLinkType
impl UnwindSafe for PcapLinkType
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