Struct pnet_packet::ethernet::Ethernet [−][src]
pub struct Ethernet {
pub destination: MacAddr,
pub source: MacAddr,
pub ethertype: EtherType,
pub payload: Vec<u8>,
}Expand description
Represents an Ethernet packet.
Fields
destination: MacAddrsource: MacAddrethertype: EtherTypepayload: Vec<u8>Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Ethernet
impl UnwindSafe for Ethernet
Blanket Implementations
Mutably borrows from an owned value. Read more
