Crates.io | netif |
lib.rs | netif |
version | 0.1.6 |
source | src |
created_at | 2021-12-22 21:35:03.671997 |
updated_at | 2022-09-19 08:07:07.464312 |
description | List the network interfaces on the system. |
homepage | |
repository | |
max_upload_size | |
id | 501948 |
size | 19,914 |
List the network interfaces on the system.
Example usage:
fn main() {
for ifa in netif::up().unwrap() {
if !ifa.address().is_loopback() {
println!("{:?}", ifa);
}
}
}
ISC, see the LICENSE file.