Module nix::ifaddrs
The portability is definied by:
#[cfg(any(target_os = "android", target_os = "dragonfly", target_os =
"freebsd", target_os = "ios", target_os = "linux", target_os = "macos",
target_os = "netbsd", target_os = "illumos", target_os = "openbsd"))]
Documentation
Query network interface addresses
Uses the Linux and/or BSD specific function getifaddrs
to query the list
of interfaces and their associated addresses.