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 Freeze for Ethernet
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