1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-09-18 12:46:58 +02:00

refactor(networkmanager): replace state-based w/ event-based approach

This commit is contained in:
Reinout Meliesie 2025-08-16 15:31:06 +02:00
commit 1836ab2943
Signed by: zedfrigg
GPG key ID: 3AFCC06481308BC6
6 changed files with 230 additions and 205 deletions

View file

@ -1,2 +1,14 @@
use crate::clients::networkmanager::dbus::{DeviceState, DeviceType};
#[derive(Debug, Clone)]
pub enum Event {}
pub enum Event {
DeviceAdded {
interface: String,
r#type: DeviceType,
},
DeviceStateChanged {
interface: String,
r#type: DeviceType,
state: DeviceState,
},
}