Struct libarp::client::ArpClient[][src]

pub struct ArpClient { /* fields omitted */ }
Expand description

Struct that encapsulates interaction with (R)ARP messages, such as sending and receiving.

Implementations

Create an ARP client on a guessed, “best-suited” interface.

Create an ARP client on the interface with the name iface_name.

Create an ARP client on the interface given.

Send an ARP message with the given timeout. Returns the next ARP message received. (must not necessarily be related to your message sent)

Send an ARP message with the given timeout, and perform an arbitrary check check_answer on the answer. Using check_answer, you can check if the received tmessage is related to your previously sent message if needed. Returns the first ARP message received that satisfies check_answer.

Resolves a given ip_addr to a MAC address. To achieve this, sends an ARP request with a timeout.

Resolves a given mac_addr to an IPv4 address. To achieve this, sends an RARP request with a timeout.

Sends arp_message on the interface belonging to this client.

Returns the next ARP message received. Doesn’t return if no ARP message is received.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.