/
View dependency graph
Depends on
README (full)
mac_address
mac_address provides a cross platform way to retrieve the MAC address of network hardware.
Supported platforms: Linux, Windows, MacOS, FreeBSD, OpenBSD, illumos
Example
use mac_address::get_mac_address;
fn main() {
match get_mac_address() {
Ok(Some(ma)) => {
println!("MAC addr = {}", ma);
println!("bytes = {:?}", ma.bytes());
}
Ok(None) => println!("No MAC address found."),
Err(e) => println!("{:?}", e),
}
}
License
mac_address is licensed under both MIT and Apache 2.0
| dir | debian/ |
| dir | examples/ |
| dir | src/ |
| file | .cargo_vcs_info.json |
| file | .gitignore |
| file | Cargo.lock |
| file | Cargo.toml |
| file | Cargo.toml.orig |
| file | LICENSE-APACHE2.0 |
| file | LICENSE-MIT |
| file | README.md |