pub enum LinkExtHeader {
Vlan(SingleVlanHeader),
Macsec(MacsecHeader),
}Expand description
The possible headers on the link layer
Variants§
Vlan(SingleVlanHeader)
VLAN header.
Macsec(MacsecHeader)
MACsec header (SecTag + next ether type if available).
Implementations§
Source§impl LinkExtHeader
impl LinkExtHeader
Sourcepub fn header_len(&self) -> usize
pub fn header_len(&self) -> usize
Returns the header length of the link extension.
Trait Implementations§
Source§impl Clone for LinkExtHeader
impl Clone for LinkExtHeader
Source§fn clone(&self) -> LinkExtHeader
fn clone(&self) -> LinkExtHeader
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 LinkExtHeader
impl Debug for LinkExtHeader
Source§impl PartialEq for LinkExtHeader
impl PartialEq for LinkExtHeader
impl Eq for LinkExtHeader
impl StructuralPartialEq for LinkExtHeader
Auto Trait Implementations§
impl Freeze for LinkExtHeader
impl RefUnwindSafe for LinkExtHeader
impl Send for LinkExtHeader
impl Sync for LinkExtHeader
impl Unpin for LinkExtHeader
impl UnwindSafe for LinkExtHeader
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