Expand description
Cross-platform library for enumerating network interfaces with metadata.
netdev provides a unified API for discovering local network interfaces
and retrieving commonly used metadata across platforms.
Main entry points:
get_interfacesreturns a snapshot of all visible interfaces.Interfacerepresents one interface and its collected metadata.get_default_interfaceandget_default_gatewayare available with thegatewayfeature (default).
Re-exports§
pub use interface::get_interfaces;pub use interface::interface::Interface;pub use net::device::NetworkDevice;pub use interface::get_default_interface;pub use route::get_default_gateway;pub use ipnet;
Modules§
Structs§
- MacAddr
- 48-bit MAC address (IEEE EUI-48).