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]
pub fn from_u16(value: u16) -> Option<EtherType>
[src]
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]
fn clone(&self) -> EtherType
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for EtherType
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more