Enum netsim::wire::EtherPayload
[−]
[src]
pub enum EtherPayload { Arp(ArpPacket), Ipv4(Ipv4Packet), Unknown { ethertype: u16, payload: Bytes, }, }
The payload of an ethernet frame.
Variants
Arp(ArpPacket)
An ARP packet
Ipv4(Ipv4Packet)
An Ipv4 packet
Unknown
A packet with an unrecognised protocol.
Fields of Unknown
ethertype: u16 | The ethertype of the protocol. |
payload: Bytes | The packet's payload data. |
Trait Implementations
impl Clone for EtherPayload
[src]
fn clone(&self) -> EtherPayload
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more