Crate ipconfig [] [src]

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.

Functions

get_adapters

Get all the network adapters on this machine.