Enum etherparse::EtherType [−][src]
pub enum EtherType { Ipv4, Ipv6, Arp, WakeOnLan, VlanTaggedFrame, ProviderBridging, VlanDoubleTaggedFrame, }
Ether type enum present in ethernet II header.
Variants
Ipv4
Ipv6
Arp
WakeOnLan
VlanTaggedFrame
ProviderBridging
VlanDoubleTaggedFrame
Methods
impl EtherType
[src]
impl EtherType
pub fn from_u16(value: u16) -> Option<EtherType>
[src]
pub fn from_u16(value: u16) -> Option<EtherType>
Tries to convert a raw ether type value to the enum. Returns None if the value does not exist in the enum.
Trait Implementations
impl Clone for EtherType
[src]
impl Clone for EtherType
fn clone(&self) -> EtherType
[src]
fn clone(&self) -> EtherType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for EtherType
[src]
impl Debug for EtherType
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for EtherType
[src]
impl Eq for EtherType
impl PartialEq for EtherType
[src]
impl PartialEq for EtherType