Enum smoltcp::phy::PcapLinkType
source · pub enum PcapLinkType {
Ethernet,
Ip,
Unknown(u32),
}
Expand description
Captured packet header type.
Variants§
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 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<PcapLinkType> for PcapLinkType
impl PartialEq<PcapLinkType> for PcapLinkType
source§fn eq(&self, other: &PcapLinkType) -> bool
fn eq(&self, other: &PcapLinkType) -> bool
source§impl PartialOrd<PcapLinkType> for PcapLinkType
impl PartialOrd<PcapLinkType> 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 more