1extern crate ifaces; 2 3#[cfg(not(test))] 4fn main () { 5 for iface in 6 ifaces::Interface::get_all().unwrap() 7 .into_iter() { 8 println!("{}\t{:?}\t{:?}", iface.name, iface.kind, iface.addr); 9 } 10}