pub fn is_sta(&self) -> bool {
        match self {
            Self::Sta | Self::ApSta => true,
            Self::Ap => false,
        }
    }
Returns true if this mode works as a client
esp-wifi/src/wifi/mod.rs