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
Request
An ARP request
Fields of Request
source_mac: MacAddr | The MAC address of the sender. |
source_ip: Ipv4Addr | The Ipv4 address of the sender. |
dest_ip: Ipv4Addr | The Ipv4 address of the peer whose MAC address we are requesting. |
Response
An ARP response
Fields of Response
source_mac: MacAddr | The MAC address of the sender. |
source_ip: Ipv4Addr | The Ipv4 address of the sender. |
dest_mac: MacAddr | The MAC address of the receiver. |
dest_ip: Ipv4Addr | The Ipv4 address of the receiver. |
Trait Implementations
impl Clone for ArpFields
[src]
fn clone(&self) -> ArpFields
[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
impl Copy for ArpFields
[src]
impl Debug for ArpFields
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more