getifs 0.6.0

Cross-platform enumeration of network interfaces and their MTU, gateway, multicast, and local/private/public IP addresses.
Documentation
1
2
3
4
5
6
7
8
use getifs::interfaces;

fn main() {
  let ift = interfaces().unwrap();
  for ifi in ift {
    println!("{ifi:?}");
  }
}