pub fn primary() -> Result<Option<Interface>>
The interface holding the default route; None without one.
None
if let Some(i) = sys_lib::net::primary()? { println!("{} {:?}", i.name, i.addresses); }
As interfaces.
interfaces