Function iwlib::get_wireless_info[][src]

pub fn get_wireless_info(interface: String) -> Option<WirelessInfo>

Get current active WirelessInfo for the interface.

Arguments

  • interface - String representing the name name of the network interface for your wireless hardware. In Linux systems, you can find that out using iw dev command.

Examples

use iwlib::*;
let wireless_info = get_wireless_info("wlan0".to_string());