[−][src]Function i3status_rs::blocks::net::get_wpa_ssid
fn get_wpa_ssid(dev: &NetworkDevice) -> Result<Option<String>, Error>
Attempt to get the SSID the given device is connected to from wpa_cli.
Returns Err if:
- wpa_cli
is not a valid command
- failed to spawn a wpa_cli
command
- wpa_cli
failed to produce a valid UTF-8 SSID
Returns Ok(None) if wpa_cli
failed to produce a SSID.