Enum netsim::wire::ArpFields [] [src]

pub enum ArpFields {
    Request {
        source_mac: MacAddr,
        source_ip: Ipv4Addr,
        dest_ip: Ipv4Addr,
    },
    Response {
        source_mac: MacAddr,
        source_ip: Ipv4Addr,
        dest_mac: MacAddr,
        dest_ip: Ipv4Addr,
    },
}

The fields of an ARP packet.

Variants

An ARP request

Fields of Request

The MAC address of the sender.

The Ipv4 address of the sender.

The Ipv4 address of the peer whose MAC address we are requesting.

An ARP response

Fields of Response

The MAC address of the sender.

The Ipv4 address of the sender.

The MAC address of the receiver.

The Ipv4 address of the receiver.

Trait Implementations

impl Clone for ArpFields
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for ArpFields
[src]

impl Debug for ArpFields
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for ArpFields
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

Auto Trait Implementations

impl Send for ArpFields

impl Sync for ArpFields