mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-09-18 12:46:58 +02:00
refactor(networkmanager): identify devices by their number outside of the client
This commit is contained in:
parent
af49acb40b
commit
db88e12b8e
3 changed files with 26 additions and 20 deletions
|
@ -3,12 +3,12 @@ use crate::clients::networkmanager::dbus::{DeviceState, DeviceType};
|
|||
#[derive(Debug, Clone)]
|
||||
pub enum ClientToModuleEvent {
|
||||
DeviceChanged {
|
||||
interface: String,
|
||||
number: u32,
|
||||
r#type: DeviceType,
|
||||
new_state: DeviceState,
|
||||
},
|
||||
DeviceRemoved {
|
||||
interface: String,
|
||||
number: u32,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue