pub enum Response {
Show 54 variants
Devices(Vec<DeviceInfo>),
Macros(Vec<MacroEntry>),
Ack,
Status {
version: String,
uptime_seconds: u64,
devices_count: usize,
macros_count: usize,
},
RecordingStarted {
device_path: String,
name: String,
},
RecordingStopped {
macro_entry: MacroEntry,
},
Profiles(Vec<String>),
ProfileLoaded {
name: String,
macros_count: usize,
},
ProfileSaved {
name: String,
macros_count: usize,
},
Error(String),
Token(String),
Authenticated,
DeviceProfiles {
device_id: String,
profiles: Vec<String>,
},
ProfileActivated {
device_id: String,
profile_name: String,
},
ProfileDeactivated {
device_id: String,
},
ActiveProfile {
device_id: String,
profile_name: Option<String>,
},
ActiveRemaps {
device_path: String,
profile_name: Option<String>,
remaps: Vec<RemapEntry>,
},
RemapProfiles {
device_path: String,
profiles: Vec<RemapProfileInfo>,
},
RemapProfileActivated {
device_path: String,
profile_name: String,
},
RemapProfileDeactivated {
device_path: String,
},
DeviceCapabilities {
device_path: String,
capabilities: DeviceCapabilities,
},
ActiveLayer {
device_id: String,
layer_id: usize,
layer_name: String,
},
LayerConfigured {
device_id: String,
layer_id: usize,
},
LayerList {
device_id: String,
layers: Vec<LayerConfigInfo>,
},
AnalogSensitivitySet {
device_id: String,
sensitivity: f32,
},
AnalogSensitivity {
device_id: String,
sensitivity: f32,
},
AnalogResponseCurveSet {
device_id: String,
curve: String,
},
AnalogResponseCurve {
device_id: String,
curve: String,
},
AnalogDeadzoneSet {
device_id: String,
percentage: u8,
},
AnalogDeadzone {
device_id: String,
percentage: u8,
},
AnalogDeadzoneXYSet {
device_id: String,
x_percentage: u8,
y_percentage: u8,
},
AnalogDeadzoneXY {
device_id: String,
x_percentage: u8,
y_percentage: u8,
},
AnalogOuterDeadzoneXYSet {
device_id: String,
x_percentage: u8,
y_percentage: u8,
},
AnalogOuterDeadzoneXY {
device_id: String,
x_percentage: u8,
y_percentage: u8,
},
AnalogDpadModeSet {
device_id: String,
mode: String,
},
AnalogDpadMode {
device_id: String,
mode: String,
},
LedColorSet {
device_id: String,
zone: LedZone,
color: (u8, u8, u8),
},
LedColor {
device_id: String,
zone: LedZone,
color: Option<(u8, u8, u8)>,
},
AllLedColors {
device_id: String,
colors: HashMap<LedZone, (u8, u8, u8)>,
},
LedBrightnessSet {
device_id: String,
zone: Option<LedZone>,
brightness: u8,
},
LedBrightness {
device_id: String,
zone: Option<LedZone>,
brightness: u8,
},
LedPatternSet {
device_id: String,
pattern: LedPattern,
},
LedPattern {
device_id: String,
pattern: LedPattern,
},
FocusChangedAck {
app_id: String,
},
HotkeyRegistered {
device_id: String,
key: String,
modifiers: Vec<String>,
},
HotkeyList {
device_id: String,
bindings: Vec<HotkeyBinding>,
},
HotkeyRemoved {
device_id: String,
key: String,
modifiers: Vec<String>,
},
AutoSwitchRulesAck,
AutoSwitchRules {
rules: Vec<AutoSwitchRule>,
},
AnalogCalibration {
device_id: String,
layer_id: usize,
calibration: Option<AnalogCalibrationConfig>,
},
AnalogCalibrationAck,
AnalogInputUpdate {
device_id: String,
axis_x: f32,
axis_y: f32,
},
AnalogInputSubscribed,
MacroSettings(MacroSettings),
}Expand description
IPC Responses from Daemon to GUI
Variants§
Devices(Vec<DeviceInfo>)
List of discovered devices
Macros(Vec<MacroEntry>)
List of configured macros
Ack
Acknowledgment of successful operation
Status
Status information
RecordingStarted
Notification that recording has started
RecordingStopped
Notification that recording has stopped
Fields
macro_entry: MacroEntryProfiles(Vec<String>)
List of available profiles
ProfileLoaded
Profile load confirmation
ProfileSaved
Profile save confirmation
Error(String)
Error response
Token(String)
Authentication token
Authenticated
Authentication successful
DeviceProfiles
List of available profiles for a device
ProfileActivated
Profile activation confirmation
ProfileDeactivated
Profile deactivation confirmation
ActiveProfile
Current active profile for a device
ActiveRemaps
Active remap configuration
RemapProfiles
List of available profiles
RemapProfileActivated
Remap profile activation confirmation
RemapProfileDeactivated
Remap profile deactivation confirmation
DeviceCapabilities
Device capability information
ActiveLayer
Current active layer for a device
LayerConfigured
Layer configuration confirmation
LayerList
List of configured layers for a device
AnalogSensitivitySet
Analog sensitivity set confirmation
AnalogSensitivity
Analog sensitivity response
AnalogResponseCurveSet
Analog response curve set confirmation
AnalogResponseCurve
Analog response curve response
AnalogDeadzoneSet
Analog deadzone set confirmation
AnalogDeadzone
Analog deadzone response
AnalogDeadzoneXYSet
Per-axis deadzone set confirmation
AnalogDeadzoneXY
Per-axis deadzone response
AnalogOuterDeadzoneXYSet
Per-axis outer deadzone set confirmation
AnalogOuterDeadzoneXY
Per-axis outer deadzone response
AnalogDpadModeSet
D-pad mode set confirmation
AnalogDpadMode
D-pad mode response
LedColorSet
LED color set confirmation
LedColor
LED color response
AllLedColors
All LED colors response
LedBrightnessSet
LED brightness set confirmation
LedBrightness
LED brightness response
LedPatternSet
LED pattern set confirmation
LedPattern
LED pattern response
FocusChangedAck
Acknowledgment of focus change event
HotkeyRegistered
Hotkey registration successful
HotkeyList
List of hotkey bindings for a device
HotkeyRemoved
Hotkey removal successful
AutoSwitchRulesAck
Auto-switch rules acknowledgment
AutoSwitchRules
Auto-switch rules response
Fields
rules: Vec<AutoSwitchRule>AnalogCalibration
Analog calibration response
AnalogCalibrationAck
Analog calibration acknowledgment
AnalogInputUpdate
Analog input update (streamed to subscribers)
AnalogInputSubscribed
Analog subscription acknowledgment
MacroSettings(MacroSettings)
Global macro settings response