Enum streamdeck_rs::Message
source · pub enum Message<G, S, M> {
Show 16 variants
KeyDown {
action: String,
context: String,
device: String,
payload: KeyPayload<S>,
},
KeyUp {
action: String,
context: String,
device: String,
payload: KeyPayload<S>,
},
WillAppear {
action: String,
context: String,
device: Option<String>,
payload: VisibilityPayload<S>,
},
WillDisappear {
action: String,
context: String,
device: Option<String>,
payload: VisibilityPayload<S>,
},
TitleParametersDidChange {
action: String,
context: String,
device: Option<String>,
payload: TitleParametersPayload<S>,
},
DeviceDidConnect {
device: String,
device_info: DeviceInfo,
},
DeviceDidDisconnect {
device: String,
},
ApplicationDidLaunch {
payload: ApplicationPayload,
},
ApplicationDidTerminate {
payload: ApplicationPayload,
},
SendToPlugin {
action: String,
context: String,
payload: M,
},
DidReceiveSettings {
action: String,
context: String,
device: String,
payload: KeyPayload<S>,
},
PropertyInspectorDidAppear {
action: String,
context: String,
device: String,
},
PropertyInspectorDidDisappear {
action: String,
context: String,
device: String,
},
DidReceiveGlobalSettings {
payload: GlobalSettingsPayload<G>,
},
SystemDidWakeUp,
Unknown,
}Expand description
A message received from the Stream Deck software.
Grepresents the global settings that are persisted within the Stream Deck software.Srepresents the settings that are persisted within the Stream Deck software.Mrepresents the messages that are received from the property inspector.
Variants§
KeyDown
Fields
payload: KeyPayload<S>Additional information about the key press.
A key has been pressed.
KeyUp
Fields
payload: KeyPayload<S>Additional information about the key press.
A key has been released.
WillAppear
Fields
device: Option<String>The device where the action will appear, or None if it does not appear on a device.
payload: VisibilityPayload<S>Additional information about the action’s appearance.
An instance of the action has been added to the display.
WillDisappear
Fields
payload: VisibilityPayload<S>Additional information about the action’s appearance.
An instance of the action has been removed from the display.
TitleParametersDidChange
Fields
payload: TitleParametersPayload<S>Additional information about the new title.
The title has changed for an instance of an action.
DeviceDidConnect
Fields
device_info: DeviceInfoInformation about the device.
A device has connected.
DeviceDidDisconnect
A device has disconnected.
ApplicationDidLaunch
Fields
payload: ApplicationPayloadInformation about the launched application.
An application monitored by the manifest file has launched.
ApplicationDidTerminate
Fields
payload: ApplicationPayloadInformation about the terminated application.
An application monitored by the manifest file has terminated.
SendToPlugin
Fields
payload: MInformation sent from the property inspector.
The property inspector has sent data.
DidReceiveSettings
Fields
payload: KeyPayload<S>The current settings for the action.
The application has sent settings for an action.
This message is sent in response to GetSettings, but also after the property inspector changes the settings.
PropertyInspectorDidAppear
Fields
The property inspector for an action has become visible.
PropertyInspectorDidDisappear
Fields
The property inspector for an action is no longer visible.
DidReceiveGlobalSettings
Fields
payload: GlobalSettingsPayload<G>The current settings for the action.
The application has sent settings for an action.
This message is sent in response to GetGlobalSettings, but also after the property inspector changes the settings.
SystemDidWakeUp
The computer has resumed from sleep.
Added in Stream Deck software version 4.3.
Unknown
An event from an unsupported version of the Stream Deck software.
This occurs when the Stream Deck software sends an event that is not understood. Usually this will be because the Stream Deck software is newer than the plugin, and it should be safe to ignore these.