Skip to content

Rust bindings to retrieve network interface information

License

Notifications You must be signed in to change notification settings

zkonge/rust-ifaces

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ifaces

Rust bindings to retrieve network interface information

Now compatible with current Rust 2018 edition.

OS Support

  • Windows
  • Unix-Like (BSD-Like, XNU, Linux)

Run

git clone https://github.com/zkonge/rust-ifaces.git
cargo run --example ifaces

Example

[dependencies]
ifaces = { git = "https://github.com/zkonge/rust-ifaces.git" }
fn main() {
    match ifaces::ifaces() {
        Ok(interfaces) => {
            for interface in interfaces.iter() {
                println!("Found Interface: {:?}", interface)
            }
        }
        Err(_) => println!("Ooops ...")
    }
}

Thanks

About

Rust bindings to retrieve network interface information

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%