Skip to main content

resolve_device_name

Function resolve_device_name 

Source
pub fn resolve_device_name<'a>(
    device: &'a LinuxNetDevice,
    original_name: &'a str,
) -> &'a str
Expand description

Resolves the final name for a network device. If the device has a configured name (non-empty), use it; otherwise use the original name.