Enum net::phy::PcapLinkType
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§
§impl Clone for PcapLinkType
impl Clone for PcapLinkType
§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 more§impl Debug for PcapLinkType
impl Debug for PcapLinkType
§impl From<u32> for PcapLinkType
impl From<u32> for PcapLinkType
§fn from(value: u32) -> PcapLinkType
fn from(value: u32) -> PcapLinkType
Converts to this type from the input type.
§impl Hash for PcapLinkType
impl Hash for PcapLinkType
§impl Ord for PcapLinkType
impl Ord for PcapLinkType
§impl PartialEq<PcapLinkType> for PcapLinkType
impl PartialEq<PcapLinkType> for PcapLinkType
§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 ==
.§impl PartialOrd<PcapLinkType> for PcapLinkType
impl PartialOrd<PcapLinkType> for PcapLinkType
§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