Enum smoltcp::phy::PcapLinkType
source · [−]pub enum PcapLinkType {
Ethernet,
Ip,
Ieee802154WithFcs,
Unknown(u32),
}
Expand description
Captured packet header type.
Variants
Ethernet
Ethernet frames
Ip
IPv4 or IPv6 packets (depending on the version field)
Ieee802154WithFcs
IEEE 802.15.4 packets with FCS included.
Unknown(u32)
Trait Implementations
sourceimpl Clone for PcapLinkType
impl Clone for PcapLinkType
sourcefn clone(&self) -> PcapLinkType
fn clone(&self) -> PcapLinkType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PcapLinkType
impl Debug for PcapLinkType
sourceimpl From<PcapLinkType> for u32
impl From<PcapLinkType> for u32
sourcefn from(value: PcapLinkType) -> Self
fn from(value: PcapLinkType) -> Self
Converts to this type from the input type.
sourceimpl From<u32> for PcapLinkType
impl From<u32> for PcapLinkType
sourceimpl Ord for PcapLinkType
impl Ord for PcapLinkType
sourceimpl PartialEq<PcapLinkType> for PcapLinkType
impl PartialEq<PcapLinkType> for PcapLinkType
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &PcapLinkType) -> bool
fn ne(&self, other: &PcapLinkType) -> bool
This method tests for !=
.
sourceimpl PartialOrd<PcapLinkType> for PcapLinkType
impl PartialOrd<PcapLinkType> for PcapLinkType
sourcefn partial_cmp(&self, other: &PcapLinkType) -> Option<Ordering>
fn partial_cmp(&self, other: &PcapLinkType) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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
impl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more