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

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

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