pub struct VlanPacket<'a> { /* private fields */ }Expand description
Zero-copy 802.1Q VLAN tag parser.
Holds a reference to the underlying byte slice starting at the VLAN tag.
Implementations§
Source§impl<'a> VlanPacket<'a>
impl<'a> VlanPacket<'a>
Trait Implementations§
Source§impl<'a> Clone for VlanPacket<'a>
impl<'a> Clone for VlanPacket<'a>
Source§fn clone(&self) -> VlanPacket<'a>
fn clone(&self) -> VlanPacket<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for VlanPacket<'a>
impl<'a> RefUnwindSafe for VlanPacket<'a>
impl<'a> Send for VlanPacket<'a>
impl<'a> Sync for VlanPacket<'a>
impl<'a> Unpin for VlanPacket<'a>
impl<'a> UnsafeUnpin for VlanPacket<'a>
impl<'a> UnwindSafe for VlanPacket<'a>
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