pub struct EtherType(pub u16);Expand description
The EtherType field in an Ethernet header, as specified in IEEE 802.
Tuple Fields§
§0: u16Implementations§
Source§impl EtherType
Common EtherTypes
impl EtherType
Common EtherTypes
The EtherTypes are taken from the following sources:
Sourcepub const C_TAG: Self
pub const C_TAG: Self
IEEE Std 802.1Q - Customer VLAN Tag Type (C-Tag, formerly called the Q-Tag) (initially Wellfleet)
Sourcepub const IEEE802_EXPERIMENTAL1: Self
pub const IEEE802_EXPERIMENTAL1: Self
IEEE Std 802 - Local Experimental Ethertype
Sourcepub const IEEE802_EXPERIMENTAL2: Self
pub const IEEE802_EXPERIMENTAL2: Self
IEEE Std 802 - Local Experimental Ethertype
Sourcepub const OUI_EXTENDED: Self
pub const OUI_EXTENDED: Self
IEEE Std 802 - OUI Extended Ethertype
Sourcepub const VINES_ECHO: Self
pub const VINES_ECHO: Self
VINES Echo
Sourcepub const VINES_LOOPBACK: Self
pub const VINES_LOOPBACK: Self
VINES Loopback
Sourcepub const APOLLO_DOMAIN: Self
pub const APOLLO_DOMAIN: Self
Apollo Domain
Sourcepub const IP_AUTONOMOUS_SYSTEMS: Self
pub const IP_AUTONOMOUS_SYSTEMS: Self
IP Autonomous Systems
Sourcepub const SECURE_DATA: Self
pub const SECURE_DATA: Self
Secure Data
Sourcepub const DEC_MOP_RC: Self
pub const DEC_MOP_RC: Self
DEC MOP RC
Sourcepub const SLOW: Self
pub const SLOW: Self
Ethernet Slow Protocols such as the Link Aggregation Control Protocol (LACP)
Sourcepub const HOMEPLUG_GREEN: Self
pub const HOMEPLUG_GREEN: Self
HomePlug Green PHY
Sourcepub const CFM: Self
pub const CFM: Self
IEEE 802.1ag Connectivity Fault Management (CFM) Protocol / ITU-T Recommendation Y.1731 (OAM)
Sourcepub const IEEE1905_1: Self
pub const IEEE1905_1: Self
1905.1 IEEE Protocol
Sourcepub const REDUNDANCY_TAG: Self
pub const REDUNDANCY_TAG: Self
Redundancy Tag (IEEE 802.1CB Frame Replication and Elimination for Reliability)
Source§impl EtherType
impl EtherType
Sourcepub const fn ieee_description(self) -> Option<&'static str>
Available on crate feature ieee only.
pub const fn ieee_description(self) -> Option<&'static str>
ieee only.A brief textual description of the EtherType sourced from the IEEE Registration Authority.
Sourcepub const fn ieee_organization(self) -> Option<&'static str>
Available on crate feature ieee only.
pub const fn ieee_organization(self) -> Option<&'static str>
ieee only.The organization that registered the EtherType sourced from the IEEE Registration Authority.
Sourcepub const fn ieee_organization_address(self) -> Option<&'static str>
Available on crate feature ieee only.
pub const fn ieee_organization_address(self) -> Option<&'static str>
ieee only.The address of the organization that registered the EtherType sourced from the IEEE Registration Authority.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EtherType
Available on crate feature serde only.
impl<'de> Deserialize<'de> for EtherType
serde only.