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
EthernetIpv4
An Ethernet and IPv4 Address Resolution Protocol packet.
Fields of EthernetIpv4
operation: Operation | |
source_hardware_addr: EthernetAddress | |
source_protocol_addr: Ipv4Address | |
target_hardware_addr: EthernetAddress | |
target_protocol_addr: Ipv4Address |
Methods
impl Repr
[src]
fn parse<T: AsRef<[u8]>>(packet: &Packet<T>) -> Result<Repr, Error>
Parse an Address Resolution Protocol packet and return a high-level representation,
or return Err(())
if the packet is not recognized.
fn buffer_len(&self) -> usize
Return the length of a packet that will be emitted from this high-level representation.
fn emit<T: AsRef<[u8]> + AsMut<[u8]>>(&self, packet: &mut Packet<T>)
Emit a high-level representation into an Address Resolution Protocol packet.
Trait Implementations
impl Debug for Repr
[src]
impl PartialEq for Repr
[src]
fn eq(&self, __arg_0: &Repr) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Repr) -> bool
This method tests for !=
.
impl Eq for Repr
[src]
impl Clone for Repr
[src]
fn clone(&self) -> Repr
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more