pub enum VlanHeader {
Single(SingleVlanHeader),
Double(DoubleVlanHeader),
}
Expand description
IEEE 802.1Q VLAN Tagging Header (can be single or double tagged).
Variants§
Single(SingleVlanHeader)
IEEE 802.1Q VLAN Tagging Header
Double(DoubleVlanHeader)
IEEE 802.1Q double VLAN Tagging Header
Implementations§
Source§impl VlanHeader
impl VlanHeader
Sourcepub const VLAN_ETHER_TYPES: [EtherType; 3]
pub const VLAN_ETHER_TYPES: [EtherType; 3]
All ether types that identify a vlan header.
Sourcepub fn next_header(&self) -> EtherType
pub fn next_header(&self) -> EtherType
Returns the ether type of the next header after the vlan header(s).
Trait Implementations§
Source§impl Clone for VlanHeader
impl Clone for VlanHeader
Source§fn clone(&self) -> VlanHeader
fn clone(&self) -> VlanHeader
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 VlanHeader
impl Debug for VlanHeader
Source§impl PartialEq for VlanHeader
impl PartialEq for VlanHeader
impl Eq for VlanHeader
impl StructuralPartialEq for VlanHeader
Auto Trait Implementations§
impl Freeze for VlanHeader
impl RefUnwindSafe for VlanHeader
impl Send for VlanHeader
impl Sync for VlanHeader
impl Unpin for VlanHeader
impl UnwindSafe for VlanHeader
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