ifcfg 0.1.2

Get network interfaces information
Documentation
1
2
3
4
5
6
7
use ifcfg;

fn main() -> ifcfg::Result<()> {
    let ifaces = ifcfg::IfCfg::get().expect("could not get interfaces");
    println!("{:#?}", &ifaces);
    Ok(())
}