Enum smoltcp::wire::ArpRepr [−][src]
#[non_exhaustive]
pub enum ArpRepr {
EthernetIpv4 {
operation: Operation,
source_hardware_addr: EthernetAddress,
source_protocol_addr: Ipv4Address,
target_hardware_addr: EthernetAddress,
target_protocol_addr: Ipv4Address,
},
}
Expand description
A high-level representation of an Address Resolution Protocol packet.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EthernetIpv4
Fields
operation: Operation
source_hardware_addr: EthernetAddress
source_protocol_addr: Ipv4Address
target_hardware_addr: EthernetAddress
target_protocol_addr: Ipv4Address
An Ethernet and IPv4 Address Resolution Protocol packet.
Implementations
Parse an Address Resolution Protocol packet and return a high-level representation,
or return Err(Error::Unrecognized)
if the packet is not recognized.
Return the length of a packet that will be emitted from this high-level representation.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Repr
impl UnwindSafe for Repr
Blanket Implementations
Mutably borrows from an owned value. Read more