pub trait EthernetDevice: NetworkDevice {
// Required method
fn mac_address(&self) -> Result<MacAddress, &'static str>;
}Expand description
Ethernet-capable network device.
This is the concrete link-layer device type used by the IPv4/ARP stack.
Required Methods§
Sourcefn mac_address(&self) -> Result<MacAddress, &'static str>
fn mac_address(&self) -> Result<MacAddress, &'static str>
Get the Ethernet MAC address for this device.