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.

  • G represents the global settings that are persisted within the Stream Deck software.
  • S represents the settings that are persisted within the Stream Deck software.
  • M represents the messages that are received from the property inspector.

Official Documentation

Variants§

§

KeyDown

Fields

§action: String

The uuid of the action.

§context: String

The instance of the action (key or part of a multiaction).

§device: String

The device where the key was pressed.

§payload: KeyPayload<S>

Additional information about the key press.

A key has been pressed.

Official Documentation

§

KeyUp

Fields

§action: String

The uuid of the action.

§context: String

The instance of the action (key or part of a multiaction).

§device: String

The device where the key was pressed.

§payload: KeyPayload<S>

Additional information about the key press.

A key has been released.

Official Documentation

§

WillAppear

Fields

§action: String

The uuid of the action.

§context: String

The instance of the action (key or part of a multiaction).

§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.

Official Documentation

§

WillDisappear

Fields

§action: String

The uuid of the action.

§context: String

The instance of the action (key or part of a multiaction).

§device: Option<String>

The device where the action was visible, or None if it was not on a device.

§payload: VisibilityPayload<S>

Additional information about the action’s appearance.

An instance of the action has been removed from the display.

Official Documentation

§

TitleParametersDidChange

Fields

§action: String

The uuid of the action.

§context: String

The instance of the action (key or part of a multiaction).

§device: Option<String>

The device where the action is visible, or None if it is not on a device.

§payload: TitleParametersPayload<S>

Additional information about the new title.

The title has changed for an instance of an action.

Official Documentation

§

DeviceDidConnect

Fields

§device: String

The ID of the device that has connected.

§device_info: DeviceInfo

Information about the device.

A device has connected.

Official Documentation

§

DeviceDidDisconnect

Fields

§device: String

The ID of the device that has disconnected.

A device has disconnected.

Official Documentation

§

ApplicationDidLaunch

Fields

§payload: ApplicationPayload

Information about the launched application.

An application monitored by the manifest file has launched.

Official Documentation

§

ApplicationDidTerminate

Fields

§payload: ApplicationPayload

Information about the terminated application.

An application monitored by the manifest file has terminated.

Official Documentation

§

SendToPlugin

Fields

§action: String

The uuid of the action.

§context: String

The instance of the action (key or part of a multiaction).

§payload: M

Information sent from the property inspector.

The property inspector has sent data.

Official Documentation

§

DidReceiveSettings

Fields

§action: String

The uuid of the action.

§context: String

The instance of the action (key or part of a multiaction).

§device: String

The device where the action exists.

§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.

Official Documentation

§

PropertyInspectorDidAppear

Fields

§action: String

The uuid of the action.

§context: String

The instance of the action (key or part of a multiaction).

§device: String

The device where the action exists.

The property inspector for an action has become visible.

Official Documentation

§

PropertyInspectorDidDisappear

Fields

§action: String

The uuid of the action.

§context: String

The instance of the action (key or part of a multiaction).

§device: String

The device where the action exists.

The property inspector for an action is no longer visible.

Official Documentation

§

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.

Official Documentation

§

SystemDidWakeUp

The computer has resumed from sleep.

Added in Stream Deck software version 4.3.

Official Documentation

§

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.

Trait Implementations§

source§

impl<G: Debug, S: Debug, M: Debug> Debug for Message<G, S, M>

source§

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

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

impl<'de, G, S, M> Deserialize<'de> for Message<G, S, M>where
G: Deserialize<'de>,
S: Deserialize<'de>,
M: Deserialize<'de>,

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

§

impl<G, S, M> RefUnwindSafe for Message<G, S, M>where
G: RefUnwindSafe,
M: RefUnwindSafe,
S: RefUnwindSafe,

§

impl<G, S, M> Send for Message<G, S, M>where
G: Send,
M: Send,
S: Send,

§

impl<G, S, M> Sync for Message<G, S, M>where
G: Sync,
M: Sync,
S: Sync,

§

impl<G, S, M> Unpin for Message<G, S, M>where
G: Unpin,
M: Unpin,
S: Unpin,

§

impl<G, S, M> UnwindSafe for Message<G, S, M>where
G: UnwindSafe,
M: UnwindSafe,
S: UnwindSafe,

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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> Same<T> for T

§

type Output = T

Should always be Self
source§

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

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,

§

fn vzip(self) -> V

source§

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

source§

impl<T> SendSyncUnwindSafe for Twhere
T: Send + Sync + UnwindSafe + ?Sized,