#[repr(C, packed(1))]pub struct VlanHdr {
pub tci: [u8; 2],
pub eth_type: EtherType,
}Expand description
VLAN tag header structure
Fields§
§tci: [u8; 2]First 2 bytes containing PCP (3 bits), DEI (1 bit), and VLAN ID (12 bits)
eth_type: EtherTypeEtherType field indicating the protocol encapsulated in the payload
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VlanHdr
impl RefUnwindSafe for VlanHdr
impl Send for VlanHdr
impl Sync for VlanHdr
impl Unpin for VlanHdr
impl UnwindSafe for VlanHdr
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