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§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§impl PartialEq for PcapLinkType
impl PartialEq for PcapLinkType
Source§impl PartialOrd for PcapLinkType
impl PartialOrd for PcapLinkType
Source§fn partial_cmp(&self, other: &PcapLinkType) -> Option<Ordering>
fn partial_cmp(&self, other: &PcapLinkType) -> Option<Ordering>
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§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)