Enum smoltcp::phy::PcapLinkType
source · 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§fn eq(&self, other: &PcapLinkType) -> bool
fn eq(&self, other: &PcapLinkType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for PcapLinkType
impl Eq for PcapLinkType
impl StructuralEq for PcapLinkType
impl StructuralPartialEq for PcapLinkType
Auto Trait Implementations§
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