Function mac_address::mac_address_by_name [] [src]

pub fn mac_address_by_name(
    name: &str
) -> Result<Option<MacAddress>, MacAddressError>

Attempts to look up the MAC address of an interface via the specified name. NOTE: On Windows, this uses the FriendlyName field of the adapter, which is the same name shown in the "Network Connections" Control Panel screen.