pub struct CommonLayerConfig {
pub layer_id: usize,
pub name: String,
pub mode: LayerMode,
pub led_color: (u8, u8, u8),
pub led_zone: Option<LedZone>,
}Expand description
Common layer configuration for IPC
This structure provides the complete layer configuration including LED colors for IPC communication between daemon and GUI.
Fields§
§layer_id: usizeLayer ID (0 = base, 1+ = additional layers)
name: StringHuman-readable layer name (e.g., “Base”, “Gaming”, “Work”)
mode: LayerModeHow this layer is activated (hold or toggle)
led_color: (u8, u8, u8)LED color for this layer (RGB)
led_zone: Option<LedZone>LED zone to display layer color
Trait Implementations§
Source§impl Clone for CommonLayerConfig
impl Clone for CommonLayerConfig
Source§fn clone(&self) -> CommonLayerConfig
fn clone(&self) -> CommonLayerConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommonLayerConfig
impl Debug for CommonLayerConfig
Source§impl<'de> Deserialize<'de> for CommonLayerConfig
impl<'de> Deserialize<'de> for CommonLayerConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CommonLayerConfig
impl PartialEq for CommonLayerConfig
Source§impl Serialize for CommonLayerConfig
impl Serialize for CommonLayerConfig
impl StructuralPartialEq for CommonLayerConfig
Auto Trait Implementations§
impl Freeze for CommonLayerConfig
impl RefUnwindSafe for CommonLayerConfig
impl Send for CommonLayerConfig
impl Sync for CommonLayerConfig
impl Unpin for CommonLayerConfig
impl UnsafeUnpin for CommonLayerConfig
impl UnwindSafe for CommonLayerConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more