Enum netsim::wire::EtherPayload [] [src]

pub enum EtherPayload {
    Arp(ArpPacket),
    Ipv4(Ipv4Packet),
    Unknown {
        ethertype: u16,
        payload: Bytes,
    },
}

The payload of an ethernet frame.

Variants

An ARP packet

An Ipv4 packet

A packet with an unrecognised protocol.

Fields of Unknown

The ethertype of the protocol.

The packet's payload data.

Trait Implementations

impl Clone for EtherPayload
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for EtherPayload
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for EtherPayload

impl Sync for EtherPayload