Enum ether_type::EtherType
source · pub enum EtherType {
IPv4,
ARP,
WoLAN,
IPv6,
Unknown(u16),
}Expand description
The EtherType as described in IEEE 802.3
Variants§
Trait Implementations§
source§impl PartialEq<EtherType> for EtherType
impl PartialEq<EtherType> for EtherType
source§impl ReadFixed<2> for EtherType
impl ReadFixed<2> for EtherType
fn from_bytes(data: &[u8; 2]) -> Result<Self, ParserError>
impl Copy for EtherType
impl Eq for EtherType
impl StructuralEq for EtherType
impl StructuralPartialEq for EtherType
Auto Trait Implementations§
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