#[non_exhaustive]pub enum EtherFrame {
Ip(Box<[u8]>),
Arp(Box<[u8]>),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
Source§impl Display for EtherFrame
impl Display for EtherFrame
Source§impl From<EtherFrame> for Box<[u8]>
impl From<EtherFrame> for Box<[u8]>
Source§fn from(frame: EtherFrame) -> Self
fn from(frame: EtherFrame) -> Self
Converts to this type from the input type.
Source§impl From<EtherFrame> for Vec<u8>
impl From<EtherFrame> for Vec<u8>
Source§fn from(frame: EtherFrame) -> Self
fn from(frame: EtherFrame) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EtherFrame
impl RefUnwindSafe for EtherFrame
impl Send for EtherFrame
impl Sync for EtherFrame
impl Unpin for EtherFrame
impl UnwindSafe for EtherFrame
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