ifstructs

Crates.ioifstructs
lib.rsifstructs
version0.1.1
sourcesrc
created_at2018-08-08 14:20:22.697152
updated_at2018-08-08 14:24:56.776417
descriptionA Rust library with native bindings to unix if* structures
homepagehttps://github.com/glebpom/rust-ifstructs
repositoryhttps://github.com/glebpom/rust-ifstructs
max_upload_size
id78369
size71,199
Gleb Pomykalov (glebpom)

documentation

http://doc.rust-lang.org/ifstructs

README

ifstructs

A Rust library with native bindings to unix if* structures

Build Status Latest version Documentation License

Usage

First, add the following to your Cargo.toml:

[dependencies]
ifstructs = "0.1.1"

Next, add this to your crate:

extern crate ifstructs;

use ifstructs::ifreq;

fn main() {
  let mut req = ifreq::from_name("eth0").unwrap();
  
  ...
}

Commit count: 109

cargo fmt