#[repr(u16)]pub enum EtherType {
Show 15 variants
Loop = 24_576,
Ipv4 = 8,
Arp = 1_544,
Ieee8021q = 129,
Ipv6 = 56_710,
Ieee8021ad = 43_144,
Ieee8021MacSec = 58_760,
Ieee8021ah = 59_272,
Ieee8021mvrp = 62_856,
FibreChannel = 1_673,
Infiniband = 5_513,
LoopbackIeee8023 = 144,
Ieee8021QinQ1 = 145,
Ieee8021QinQ2 = 146,
Ieee8021QinQ3 = 147,
}Expand description
Protocol which is encapsulated in the payload of the Ethernet frame. These values represent the standard IEEE assigned protocol numbers
Variants§
Loop = 24_576
Ipv4 = 8
Arp = 1_544
Ieee8021q = 129
Ipv6 = 56_710
Ieee8021ad = 43_144
Ieee8021MacSec = 58_760
Ieee8021ah = 59_272
Ieee8021mvrp = 62_856
FibreChannel = 1_673
Infiniband = 5_513
LoopbackIeee8023 = 144
Ieee8021QinQ1 = 145
Ieee8021QinQ2 = 146
Ieee8021QinQ3 = 147
Trait Implementations§
impl Copy for EtherType
impl Eq for EtherType
impl StructuralPartialEq for EtherType
Auto Trait Implementations§
impl Freeze for EtherType
impl RefUnwindSafe for EtherType
impl Send for EtherType
impl Sync for EtherType
impl Unpin for EtherType
impl UnwindSafe for EtherType
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