pub struct EthernetHeader {
pub dst_mac: [u8; 6],
pub src_mac: [u8; 6],
pub ethertype: EtherType,
}Expand description
Parsed Ethernet header fields.
Fields§
§dst_mac: [u8; 6]§src_mac: [u8; 6]§ethertype: EtherTypeImplementations§
Trait Implementations§
Source§impl Clone for EthernetHeader
impl Clone for EthernetHeader
Source§fn clone(&self) -> EthernetHeader
fn clone(&self) -> EthernetHeader
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EthernetHeader
Auto Trait Implementations§
impl Freeze for EthernetHeader
impl RefUnwindSafe for EthernetHeader
impl Send for EthernetHeader
impl Sync for EthernetHeader
impl Unpin for EthernetHeader
impl UnsafeUnpin for EthernetHeader
impl UnwindSafe for EthernetHeader
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