pub struct DoubleVlanHeader {
pub outer: SingleVlanHeader,
pub inner: SingleVlanHeader,
}Expand description
IEEE 802.1Q double VLAN Tagging Header (helper struct to
check vlan tagging values in a crate::PacketHeaders).
Note that it is NOT guranteed that the two VLAN headers will directly follow each other. In the original packet there could be another LinkExt header present in between them (e.g. MacSec Security Tag).
Fields§
§outer: SingleVlanHeaderThe outer vlan tagging header
inner: SingleVlanHeaderThe inner vlan tagging header
Trait Implementations§
Source§impl Clone for DoubleVlanHeader
impl Clone for DoubleVlanHeader
Source§fn clone(&self) -> DoubleVlanHeader
fn clone(&self) -> DoubleVlanHeader
Returns a duplicate 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 Default for DoubleVlanHeader
impl Default for DoubleVlanHeader
Source§impl PartialEq for DoubleVlanHeader
impl PartialEq for DoubleVlanHeader
impl Eq for DoubleVlanHeader
impl StructuralPartialEq for DoubleVlanHeader
Auto Trait Implementations§
impl Freeze for DoubleVlanHeader
impl RefUnwindSafe for DoubleVlanHeader
impl Send for DoubleVlanHeader
impl Sync for DoubleVlanHeader
impl Unpin for DoubleVlanHeader
impl UnwindSafe for DoubleVlanHeader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more