Struct etherparse::SingleVlanHeader[][src]

pub struct SingleVlanHeader {
    pub priority_code_point: u8,
    pub drop_eligible_indicator: bool,
    pub vlan_identifier: u16,
    pub ether_type: u16,
}

IEEE 802.1Q VLAN Tagging Header

Fields

A 3 bit number which refers to the IEEE 802.1p class of service and maps to the frame priority level.

Indicate that the frame may be dropped under the presence of congestion.

12 bits vland identifier.

"Tag protocol identifier": Type id of content after this header. Refer to the "EtherType" for a list of possible supported values.

Methods

impl SingleVlanHeader
[src]

Read a IEEE 802.1Q VLAN tagging header

Write the IEEE 802.1Q VLAN tagging header

Trait Implementations

impl Clone for SingleVlanHeader
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for SingleVlanHeader
[src]

Formats the value using the given formatter. Read more

impl Eq for SingleVlanHeader
[src]

impl PartialEq for SingleVlanHeader
[src]

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

This method tests for !=.

impl SerializedSize for SingleVlanHeader
[src]

SERIALIZED_SIZE: usize = 4

Serialized size of the header in bytes.

Auto Trait Implementations