wifui 0.5.0

A lightweight, keyboard-driven Terminal User Interface (TUI) for managing Wi-Fi connections on Windows and Linux.
/// WiFi network information
#[derive(Debug, Default, Clone)]
pub struct WifiInfo {
    pub ssid: String,
    pub authentication: String,
    pub encryption: String,
    pub signal: u8,
    pub is_saved: bool,
    pub is_connected: bool,
    pub auto_connect: bool,
    pub phy_type: String,
    pub channel: u32,
    /// Center frequency in Hz. `0` means the backend does not expose it.
    pub frequency: u64,
    pub link_speed: Option<u32>,
    /// BSSID of the access point represented by this row, when exposed.
    pub bssid: Option<String>,
}

/// Connection events from the WiFi listener
#[derive(Debug, Clone)]
pub enum ConnectionEvent {
    Connected(String),
    Disconnected,
    #[allow(dead_code)]
    Failed {
        ssid: String,
        reason_code: u32,
        reason_str: String,
    },
}