Skip to main content

02_network_configuration_overview/
02_network_configuration_overview.rs

1use systemconfiguration::NetworkConfiguration;
2
3fn main() -> Result<(), Box<dyn std::error::Error>> {
4    let overview = NetworkConfiguration::overview()?;
5    println!(
6        "interfaces={} services={} sets={} current={:?}",
7        overview.interface_count,
8        overview.service_count,
9        overview.set_count,
10        overview.current_set_name
11    );
12    Ok(())
13}