feat: implement fullstate on-connect event

This commit is contained in:
atagen 2025-06-21 22:30:12 +10:00
parent 05e12ea2f2
commit 73813605d6
4 changed files with 66 additions and 14 deletions

View file

@ -1,3 +1,5 @@
use std::collections::HashMap;
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug)]
@ -19,4 +21,12 @@ pub enum TagEvent {
TagUrgent(u8),
TagEnabled(u8),
TagDisabled(u8),
TagFullState(HashMap<u8, TagState>),
}
#[derive(Serialize, Deserialize, Debug)]
pub struct TagState {
pub enabled: bool,
pub occupied: bool,
pub urgent: bool,
}