Skip to content
This repository has been archived by the owner on Oct 8, 2023. It is now read-only.

misuzu/rust-interfaces

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust bindings to retrieve network interface information

Date: 10/10 2017
RustVersion:nightly
  • 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 ...")
    };
}
  • dlevy47 , Origin code(linux platform)
  • GGist , windows platform code

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%