Enum etherparse::VlanSlice [−][src]
pub enum VlanSlice<'a> {
SingleVlan(SingleVlanHeaderSlice<'a>),
DoubleVlan(DoubleVlanHeaderSlice<'a>),
}
Expand description
A slice containing a single or double vlan header.
Variants
SingleVlan(SingleVlanHeaderSlice<'a>)
Tuple Fields
0: SingleVlanHeaderSlice<'a>
DoubleVlan(DoubleVlanHeaderSlice<'a>)
Tuple Fields
0: DoubleVlanHeaderSlice<'a>
Implementations
Decode all the fields and copy the results to a VlanHeader struct
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for VlanSlice<'a>
impl<'a> UnwindSafe for VlanSlice<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more