pub struct EthernetFrame {
pub source_mac: [u8; 6],
pub destination_mac: [u8; 6],
pub ethertype: u16,
pub frame_check_sequence: u32,
}Expand description
Ethernet (Layer 2) Frame
Fields§
§source_mac: [u8; 6]§destination_mac: [u8; 6]§ethertype: u16§frame_check_sequence: u32Trait Implementations§
Source§impl Clone for EthernetFrame
impl Clone for EthernetFrame
Source§fn clone(&self) -> EthernetFrame
fn clone(&self) -> EthernetFrame
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EthernetFrame
impl Debug for EthernetFrame
Source§impl<'de> Deserialize<'de> for EthernetFrame
impl<'de> Deserialize<'de> for EthernetFrame
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
Auto Trait Implementations§
impl Freeze for EthernetFrame
impl RefUnwindSafe for EthernetFrame
impl Send for EthernetFrame
impl Sync for EthernetFrame
impl Unpin for EthernetFrame
impl UnwindSafe for EthernetFrame
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