Trait smoltcp::iface::ArpCache
[−]
[src]
pub trait ArpCache { fn fill(
&mut self,
protocol_addr: &IpAddress,
hardware_addr: &EthernetAddress
); fn lookup(&mut self, protocol_addr: &IpAddress) -> Option<EthernetAddress>; }
An Address Resolution Protocol cache.
This interface maps protocol addresses to hardware addresses.
Required Methods
fn fill(&mut self, protocol_addr: &IpAddress, hardware_addr: &EthernetAddress)
Update the cache to map given protocol address to given hardware address.
fn lookup(&mut self, protocol_addr: &IpAddress) -> Option<EthernetAddress>
Look up the hardware address corresponding for the given protocol address.
Implementors
impl<'a> Cache for SliceCache<'a>