[][src]Module i3status_rs::blocks::net

Structs

DEFAULT_DEV_REGEX
ETHTOOL_SPEED_REGEX
IWCTL_SSID_REGEX
IW_BITRATE_REGEX
IW_SIGNAL_REGEX
IW_SSID_REGEX
IpAddrInfo
IpDev
Net
NetConfig
NetworkDevice
WHITESPACE_REGEX
WPA_SSID_REGEX

Enums

Unit

Functions

decode_escaped_unicode
exec_ssid_cmd
get_iw_ssid

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.

get_iwctl_ssid

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

get_nmcli_ssid

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.

get_ssid
get_wpa_ssid

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.

maybe_ssid_convert
read_file