Enum etherparse::EtherType[][src]

pub enum EtherType {
    Ipv4,
    Ipv6,
    Arp,
    WakeOnLan,
    VlanTaggedFrame,
    ProviderBridging,
    VlanDoubleTaggedFrame,
}

Ether type enum present in ethernet II header.

Variants

Methods

impl 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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for EtherType
[src]

Formats the value using the given formatter. Read more

impl Eq for EtherType
[src]

impl PartialEq for EtherType
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for EtherType

impl Sync for EtherType