Struct etherparse::DoubleVlanHeader
source · pub struct DoubleVlanHeader {
pub outer: SingleVlanHeader,
pub inner: SingleVlanHeader,
}
Expand description
IEEE 802.1Q double VLAN Tagging Header
Fields§
§outer: SingleVlanHeader
The outer vlan tagging header
inner: SingleVlanHeader
The inner vlan tagging header
Implementations§
source§impl DoubleVlanHeader
impl DoubleVlanHeader
sourcepub fn read_from_slice(
slice: &[u8]
) -> Result<(DoubleVlanHeader, &[u8]), ReadError>
pub fn read_from_slice(
slice: &[u8]
) -> Result<(DoubleVlanHeader, &[u8]), ReadError>
Read an DoubleVlanHeader from a slice and return the header & unused parts of the slice.
Trait Implementations§
source§impl Clone for DoubleVlanHeader
impl Clone for DoubleVlanHeader
source§fn clone(&self) -> DoubleVlanHeader
fn clone(&self) -> DoubleVlanHeader
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 DoubleVlanHeader
impl Debug for DoubleVlanHeader
source§impl PartialEq<DoubleVlanHeader> for DoubleVlanHeader
impl PartialEq<DoubleVlanHeader> for DoubleVlanHeader
source§fn eq(&self, other: &DoubleVlanHeader) -> bool
fn eq(&self, other: &DoubleVlanHeader) -> bool
source§impl SerializedSize for DoubleVlanHeader
impl SerializedSize for DoubleVlanHeader
source§const SERIALIZED_SIZE: usize = 8usize
const SERIALIZED_SIZE: usize = 8usize
Serialized size of the header in bytes.