Enum smoltcp::wire::ArpRepr [] [src]

pub enum ArpRepr {
    EthernetIpv4 {
        operation: Operation,
        source_hardware_addr: EthernetAddress,
        source_protocol_addr: Ipv4Address,
        target_hardware_addr: EthernetAddress,
        target_protocol_addr: Ipv4Address,
    },
    // some variants omitted
}

A high-level representation of an Address Resolution Protocol packet.

Variants

An Ethernet and IPv4 Address Resolution Protocol packet.

Fields of EthernetIpv4

Methods

impl Repr
[src]

Parse an Address Resolution Protocol packet and return a high-level representation, or return Err(()) if the packet is not recognized.

Return the length of a packet that will be emitted from this high-level representation.

Emit a high-level representation into an Address Resolution Protocol packet.

Trait Implementations

impl Debug for Repr
[src]

Formats the value using the given formatter.

impl PartialEq for Repr
[src]

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

This method tests for !=.

impl Eq for Repr
[src]

impl Clone for Repr
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Repr
[src]

impl Display for Repr
[src]

Formats the value using the given formatter.