Struct t2plugin::nethdr::EthernetHeader
source · #[repr(C, packed)]pub struct EthernetHeader {
pub dhost: [u8; 6],
pub shost: [u8; 6],
/* private fields */
}
Expand description
Ethernet header: https://en.wikipedia.org/wiki/Ethernet_frame#Ethernet_II
Fields§
§dhost: [u8; 6]
Destination MAC address
shost: [u8; 6]
Source MAC address
Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for EthernetHeader
impl Send for EthernetHeader
impl Sync for EthernetHeader
impl Unpin 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