pub struct EtherType(pub u16);
Expand description
The EtherType field in an Ethernet header, as specified in IEEE 802.
Tuple Fields§
§0: u16
Implementations§
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
Available on crate feature
serde
only.Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for EtherType
impl Ord for EtherType
Source§impl PartialOrd for EtherType
impl PartialOrd for EtherType
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