Skip to main content

Request

Enum Request 

Source
pub enum Request {
Show 63 variants GetDevices, SetMacro { device_path: String, macro_entry: MacroEntry, }, ListMacros, DeleteMacro { name: String, }, ReloadConfig, LedSet { device_path: String, color: (u8, u8, u8), }, RecordMacro { device_path: String, name: String, capture_mouse: bool, }, StopRecording, TestMacro { name: String, }, GetStatus, SaveProfile { name: String, }, LoadProfile { name: String, }, ListProfiles, DeleteProfile { name: String, }, GenerateToken { client_id: String, }, Authenticate { token: String, }, ExecuteMacro { name: String, }, GrabDevice { device_path: String, }, UngrabDevice { device_path: String, }, GetDeviceProfiles { device_id: String, }, ActivateProfile { device_id: String, profile_name: String, }, DeactivateProfile { device_id: String, }, GetActiveProfile { device_id: String, }, GetActiveRemaps { device_path: String, }, ListRemapProfiles { device_path: String, }, ActivateRemapProfile { device_path: String, profile_name: String, }, DeactivateRemapProfile { device_path: String, }, GetDeviceCapabilities { device_path: String, }, GetActiveLayer { device_id: String, }, SetLayerConfig { device_id: String, layer_id: usize, config: LayerConfigInfo, }, ActivateLayer { device_id: String, layer_id: usize, mode: LayerMode, }, ListLayers { device_id: String, }, SetAnalogSensitivity { device_id: String, sensitivity: f32, }, GetAnalogSensitivity { device_id: String, }, SetAnalogResponseCurve { device_id: String, curve: String, }, GetAnalogResponseCurve { device_id: String, }, SetAnalogDeadzone { device_id: String, percentage: u8, }, GetAnalogDeadzone { device_id: String, }, SetAnalogDeadzoneXY { device_id: String, x_percentage: u8, y_percentage: u8, }, GetAnalogDeadzoneXY { device_id: String, }, SetAnalogOuterDeadzoneXY { device_id: String, x_percentage: u8, y_percentage: u8, }, GetAnalogOuterDeadzoneXY { device_id: String, }, SetAnalogDpadMode { device_id: String, mode: String, }, GetAnalogDpadMode { device_id: String, }, SetLedColor { device_id: String, zone: LedZone, red: u8, green: u8, blue: u8, }, GetLedColor { device_id: String, zone: LedZone, }, GetAllLedColors { device_id: String, }, SetLedBrightness { device_id: String, zone: Option<LedZone>, brightness: u8, }, GetLedBrightness { device_id: String, zone: Option<LedZone>, }, SetLedPattern { device_id: String, pattern: LedPattern, }, GetLedPattern { device_id: String, }, FocusChanged { app_id: String, window_title: Option<String>, }, RegisterHotkey { device_id: String, binding: HotkeyBinding, }, ListHotkeys { device_id: String, }, RemoveHotkey { device_id: String, key: String, modifiers: Vec<String>, }, SetAutoSwitchRules { rules: Vec<AutoSwitchRule>, }, GetAutoSwitchRules, GetAnalogCalibration { device_id: String, layer_id: usize, }, SetAnalogCalibration { device_id: String, layer_id: usize, calibration: AnalogCalibrationConfig, }, SubscribeAnalogInput { device_id: String, }, UnsubscribeAnalogInput { device_id: String, }, SetMacroSettings(MacroSettings), GetMacroSettings,
}
Expand description

IPC Requests from GUI to Daemon

Variants§

§

GetDevices

List all available devices

§

SetMacro

Set a macro for a device

Fields

§device_path: String
§macro_entry: MacroEntry
§

ListMacros

List all configured macros

§

DeleteMacro

Delete a macro by name

Fields

§name: String
§

ReloadConfig

Reload configuration from disk

§

LedSet

Set LED color for a device

Fields

§device_path: String
§color: (u8, u8, u8)
§

RecordMacro

Start recording a macro

Fields

§device_path: String
§name: String
§capture_mouse: bool
§

StopRecording

Stop recording a macro

§

TestMacro

Test a macro execution

Fields

§name: String
§

GetStatus

Get daemon status and version

§

SaveProfile

Save current macros to a profile

Fields

§name: String
§

LoadProfile

Load macros from a profile

Fields

§name: String
§

ListProfiles

List available profiles

§

DeleteProfile

Delete a profile

Fields

§name: String
§

GenerateToken

Generate an authentication token

Fields

§client_id: String
§

Authenticate

Authenticate with a token

Fields

§token: String
§

ExecuteMacro

Execute a macro by name

Fields

§name: String
§

GrabDevice

Grab a device exclusively for input interception

Fields

§device_path: String
§

UngrabDevice

Release exclusive access to a device

Fields

§device_path: String
§

GetDeviceProfiles

Get available profiles for a specific device

Fields

§device_id: String
§

ActivateProfile

Activate a remap profile for a device

Fields

§device_id: String
§profile_name: String
§

DeactivateProfile

Deactivate the current remap profile for a device

Fields

§device_id: String
§

GetActiveProfile

Get the currently active profile for a device

Fields

§device_id: String
§

GetActiveRemaps

Query active remap configuration for a device

Fields

§device_path: String
§

ListRemapProfiles

List available remap profiles for a device

Fields

§device_path: String
§

ActivateRemapProfile

Activate a remap profile for a device

Fields

§device_path: String
§profile_name: String
§

DeactivateRemapProfile

Deactivate current remap profile for a device

Fields

§device_path: String
§

GetDeviceCapabilities

Get device capabilities and features

Fields

§device_path: String
§

GetActiveLayer

Get the currently active layer for a device

Fields

§device_id: String
§

SetLayerConfig

Set layer configuration for a device

Fields

§device_id: String
§layer_id: usize
§

ActivateLayer

Activate a layer for a device with specified mode

Fields

§device_id: String
§layer_id: usize
§

ListLayers

List all configured layers for a device

Fields

§device_id: String
§

SetAnalogSensitivity

Set analog sensitivity for a device

Fields

§device_id: String
§sensitivity: f32
§

GetAnalogSensitivity

Get analog sensitivity for a device

Fields

§device_id: String
§

SetAnalogResponseCurve

Set analog response curve for a device

Fields

§device_id: String
§curve: String
§

GetAnalogResponseCurve

Get analog response curve for a device

Fields

§device_id: String
§

SetAnalogDeadzone

Set analog deadzone for a device (both X and Y axes)

Fields

§device_id: String
§percentage: u8
§

GetAnalogDeadzone

Get analog deadzone for a device (returns X-axis percentage)

Fields

§device_id: String
§

SetAnalogDeadzoneXY

Set per-axis analog deadzone for a device

Fields

§device_id: String
§x_percentage: u8
§y_percentage: u8
§

GetAnalogDeadzoneXY

Get per-axis analog deadzone for a device

Fields

§device_id: String
§

SetAnalogOuterDeadzoneXY

Set per-axis outer deadzone (max clamp) for a device

Fields

§device_id: String
§x_percentage: u8
§y_percentage: u8
§

GetAnalogOuterDeadzoneXY

Get per-axis outer deadzone for a device

Fields

§device_id: String
§

SetAnalogDpadMode

Set D-pad emulation mode for a device

Fields

§device_id: String
§mode: String
§

GetAnalogDpadMode

Get D-pad emulation mode for a device

Fields

§device_id: String
§

SetLedColor

Set LED color for a specific zone

Fields

§device_id: String
§zone: LedZone
§red: u8
§green: u8
§blue: u8
§

GetLedColor

Get LED color for a specific zone

Fields

§device_id: String
§zone: LedZone
§

GetAllLedColors

Get all LED colors for a device

Fields

§device_id: String
§

SetLedBrightness

Set LED brightness for a device (global or per-zone)

Fields

§device_id: String
§brightness: u8
§

GetLedBrightness

Get LED brightness for a device

Fields

§device_id: String
§

SetLedPattern

Set LED pattern for a device

Fields

§device_id: String
§pattern: LedPattern
§

GetLedPattern

Get LED pattern for a device

Fields

§device_id: String
§

FocusChanged

Notify daemon that window focus changed (for auto-profile switching)

Fields

§app_id: String
§window_title: Option<String>
§

RegisterHotkey

Register a global hotkey binding

Fields

§device_id: String
§

ListHotkeys

List all registered hotkey bindings for a device

Fields

§device_id: String
§

RemoveHotkey

Remove a hotkey binding

Fields

§device_id: String
§modifiers: Vec<String>
§

SetAutoSwitchRules

Set global auto-switch rules for profile switching

Fields

§

GetAutoSwitchRules

Get all auto-switch rules

§

GetAnalogCalibration

Get analog calibration for a device and layer

Fields

§device_id: String
§layer_id: usize
§

SetAnalogCalibration

Set analog calibration for a device and layer

Fields

§device_id: String
§layer_id: usize
§

SubscribeAnalogInput

Subscribe to analog input updates for a device

Fields

§device_id: String
§

UnsubscribeAnalogInput

Unsubscribe from analog input updates

Fields

§device_id: String
§

SetMacroSettings(MacroSettings)

Set global macro timing and jitter settings

§

GetMacroSettings

Get current global macro settings

Trait Implementations§

Source§

impl Clone for Request

Source§

fn clone(&self) -> Request

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Request

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Request

Source§

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 Serialize for Request

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,