Struct etherparse::vlan_tagging::DoubleVlanHeader [−][src]
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
👎 Deprecated since 0.10.0: Use SingleVlanHeader::from_slice instead.
👎 Deprecated since 0.10.0:
Use SingleVlanHeader::from_slice instead.
Read an DoubleVlanHeader from a slice and return the header & unused parts of the slice.
Read an DoubleVlanHeader from a slice and return the header & unused parts of the slice.
Read a double tagging header from the given source
Write the double IEEE 802.1Q VLAN tagging header
Length of the serialized headers in bytes.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Serialized size of the header in bytes.
Auto Trait Implementations
impl RefUnwindSafe for DoubleVlanHeader
impl Send for DoubleVlanHeader
impl Sync for DoubleVlanHeader
impl Unpin for DoubleVlanHeader
impl UnwindSafe for DoubleVlanHeader
Blanket Implementations
Mutably borrows from an owned value. Read more