Struct etherparse::SingleVlanHeader
source · pub struct SingleVlanHeader {
pub priority_code_point: u8,
pub drop_eligible_indicator: bool,
pub vlan_identifier: u16,
pub ether_type: u16,
}
Expand description
IEEE 802.1Q VLAN Tagging Header
Fields§
§priority_code_point: u8
A 3 bit number which refers to the IEEE 802.1p class of service and maps to the frame priority level.
drop_eligible_indicator: bool
Indicate that the frame may be dropped under the presence of congestion.
vlan_identifier: u16
12 bits vland identifier.
ether_type: u16
“Tag protocol identifier”: Type id of content after this header. Refer to the “EtherType” for a list of possible supported values.
Implementations§
Trait Implementations§
source§impl Clone for SingleVlanHeader
impl Clone for SingleVlanHeader
source§fn clone(&self) -> SingleVlanHeader
fn clone(&self) -> SingleVlanHeader
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 moresource§impl Debug for SingleVlanHeader
impl Debug for SingleVlanHeader
source§impl Default for SingleVlanHeader
impl Default for SingleVlanHeader
source§fn default() -> SingleVlanHeader
fn default() -> SingleVlanHeader
Returns the “default value” for a type. Read more
source§impl PartialEq<SingleVlanHeader> for SingleVlanHeader
impl PartialEq<SingleVlanHeader> for SingleVlanHeader
source§fn eq(&self, other: &SingleVlanHeader) -> bool
fn eq(&self, other: &SingleVlanHeader) -> bool
source§impl SerializedSize for SingleVlanHeader
impl SerializedSize for SingleVlanHeader
source§const SERIALIZED_SIZE: usize = 4usize
const SERIALIZED_SIZE: usize = 4usize
Serialized size of the header in bytes.