| Crates.io | ifstructs |
| lib.rs | ifstructs |
| version | 0.1.1 |
| created_at | 2018-08-08 14:20:22.697152+00 |
| updated_at | 2018-08-08 14:24:56.776417+00 |
| description | A Rust library with native bindings to unix if* structures |
| homepage | https://github.com/glebpom/rust-ifstructs |
| repository | https://github.com/glebpom/rust-ifstructs |
| max_upload_size | |
| id | 78369 |
| size | 71,199 |
A Rust library with native bindings to unix if* structures
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();
...
}