This library contains functionality to retrieve network interface information on Linux machines.
See src/bin/ifaces.rs for an example of printing out network interfaces on a machine:
externcrate"rust-ifaces" as ifaces;fnmain(){for iface in
ifaces::Interface::get_all().unwrap().into_iter().filter(|x| x.kind == ifaces::Kind::Packet){println!("{}", iface.name);}}On my machine, this prints out:
$ target/ifaces
lo
eth0
wlan0
docker0