Struct netsim::wire::ArpPacket [] [src]

pub struct ArpPacket { /* fields omitted */ }

An ARP packet

Methods

impl ArpPacket
[src]

[src]

Create a new ArpPacket given the description provided by fields.

[src]

Write an ARP packet described by fields to the given buffer.

[src]

Parse an ARP packet from the given buffer.

[src]

Parse the ARP packet into an ArpFields.

[src]

Get the MAC address of the sender.

[src]

Get the IP address of the sender.

[src]

Get the MAC address of the destination.

[src]

Get the IP address of the destination.

[src]

Return the underlying byte buffer of this packet.

[src]

Consume the packet and return the underlying buffer

Trait Implementations

impl Clone for ArpPacket
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for ArpPacket
[src]

[src]

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

[src]

This method tests for !=.

impl Debug for ArpPacket
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for ArpPacket

impl Sync for ArpPacket