[][src]Function i3status_rs::blocks::net::get_iw_ssid

fn get_iw_ssid(dev: &NetworkDevice) -> Result<Option<String>, Error>

Attempt to get the SSID the given device is connected to from iw. Returns Err if: - iw is not a valid command - failed to spawn an iw command - iw failed to produce a valid UTF-8 SSID Returns Ok(None) if iw failed to produce a SSID.