Struct xenet_packet::ethernet::Ethernet
source · pub struct Ethernet {
pub destination: MacAddr,
pub source: MacAddr,
pub ethertype: EtherType,
pub payload: Vec<u8>,
}
Expand description
Represents an Ethernet packet.
Fields§
§destination: MacAddr
§source: MacAddr
§ethertype: EtherType
§payload: Vec<u8>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Ethernet
impl Send for Ethernet
impl Sync for Ethernet
impl Unpin for Ethernet
impl UnwindSafe for Ethernet
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