Date: | 10/10 2017 |
---|---|
RustVersion: | nightly |
Contents
- Windows
- Unix-Like( BSD-Like, XNU, Linux )
git clone https://github.com/LuoZijun/rust-ifaces.git
cargo run --example ifaces
[dependencies]
ifaces = { git = "https://github.com/LuoZijun/rust-ifaces.git" }
extern crate ifaces;
fn main() {
match ifaces::ifaces() {
Ok(interfaces) => {
for interface in interfaces.into_iter() {
println!("Found Interface: {:?}", interface)
}
},
Err(_) => println!("Ooops ...")
};
}