EthernetDevice

Trait EthernetDevice 

Source
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§

Source

fn mac_address(&self) -> Result<MacAddress, &'static str>

Get the Ethernet MAC address for this device.

Implementors§