[−][src]Crate ipconfig
Get network adapters information for windows.
Examples
// Print the ip addresses and dns servers of all adapters: for adapter in ipconfig::get_adapters()? { println!("Ip addresses: {:#?}", adapter.ip_addresses()); println!("Dns servers: {:#?}", adapter.dns_servers()); }
Modules
computer | This module implements things that are related to the computer, rather than a specific adapter. |
error |
Structs
Adapter | Represent an adapter. |
Enums
IfType | Represent an interface type
See IANA docs on iftype for more details
https://www.iana.org/assignments/ianaiftype-mib/ianaiftype-mib
Note that we only support a subset of the IANA interface
types and in case the adapter has an unsupported type,
|
OperStatus | Represent an operational status of the adapter See IP_ADAPTER_ADDRESSES docs for more details |
Functions
get_adapters | Get all the network adapters on this machine. |