wifi_lab
Clone
https://git.tahinli.com/Tahinli/wifi_lab.git
0 watching0 forksRust2.1 MiBb265998Tahinli1 month ago27 commits
| 1 | //! GPUI + gpuikit shell for wifi_lab. |
| 2 | //! |
| 3 | //! `run_app` opens the window and wires the service event channel: the mock |
| 4 | //! generator in [`mock`] (mock mode) or the privileged-service reader thread |
| 5 | //! feed the `Sender` side; the UI itself never needs root. |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | pub |
| 12 | |
| 13 | |
| 14 | |
| 15 | use Arc; |
| 16 | |
| 17 | use |
| 18 | |
| 19 | ; |
| 20 | use ; |
| 21 | |
| 22 | /// Launch the UI. Blocks until the window closes. |
| 23 | /// |
| 24 | /// `mock_flag` is the CLI `--mock` switch; combined with the legacy |
| 25 | /// `WIFI_LAB_MOCK` env var. The REAL service is the default: the |
| 26 | /// [`crate::service::ServiceClient`] spawns lazily on the first |
| 27 | /// "Start capture" click (polkit-elevated child process). |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | |
| 53 | |
| 54 | |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 | |
| 63 | |
| 64 | |
| 65 | |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 | |
| 71 | |
| 72 | |
| 73 | |
| 74 | |
| 75 | |
| 76 | |
| 77 | |
| 78 | |
| 79 | |
| 80 | |
| 81 | |
| 82 | |
| 83 | |
| 84 | |
| 85 | |
| 86 | |
| 87 | |
| 88 | |
| 89 | |
| 90 | |
| 91 | |
| 92 | |
| 93 | |
| 94 | |
| 95 | |
| 96 | |
| 97 | |
| 98 | |
| 99 | |
| 100 | |
| 101 | |
| 102 | |
| 103 | |
| 104 | |
| 105 | |
| 106 | |
| 107 | |
| 108 |