Registry / networking / network-interface

network-interface

JSON →
library2.0.5rscratesunverified

Retrieve system's Network Interfaces on Linux, FreeBSD, macOS and Windows on a standarized manner.

# Cargo.toml [dependencies] network-interface = "2.0.5"
INSTALL
IMPORT
SIG · NETWORK-INTERFACE
N
network-interface
networkingrustv2.0.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

NetworkInterface
use network_interface::NetworkInterface;

Lists all network interfaces.

use network_interface::NetworkInterface; fn main() { let interfaces = NetworkInterface::show().unwrap(); for iface in interfaces { println!("Interface: {}", iface.name); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.0.5latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
network-interface — cargo add network-interface · libregistry