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
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.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)