[][src]Enum streamdeck_rs::MessageOut

pub enum MessageOut<G, S, M> {
    SetTitle {
        context: String,
        payload: TitlePayload,
    },
    SetImage {
        context: String,
        payload: ImagePayload,
    },
    ShowAlert {
        context: String,
    },
    ShowOk {
        context: String,
    },
    GetSettings {
        context: String,
    },
    SetSettings {
        context: String,
        payload: S,
    },
    SetState {
        context: String,
        payload: StatePayload,
    },
    SendToPropertyInspector {
        action: String,
        context: String,
        payload: M,
    },
    SwitchToProfile {
        context: String,
        device: String,
        payload: ProfilePayload,
    },
    OpenUrl {
        payload: UrlPayload,
    },
    GetGlobalSettings {
        context: String,
    },
    SetGlobalSettings {
        context: String,
        payload: G,
    },
    LogMessage {
        payload: LogMessagePayload,
    },
}

A message to be sent to the Stream Deck software.

  • G represents the global settings that are persisted within the Stream Deck software.
  • S represents the action settings that are persisted within the Stream Deck software.
  • M represents the messages that are sent to the property inspector.

Official Documentation

Variants

SetTitle

Set the title of an action instance.

Official Documentation

Fields of SetTitle

context: String

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

payload: TitlePayload

The title to set.

SetImage

Set the image of an action instance.

Official Documentation

Fields of SetImage

context: String

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

payload: ImagePayload

The image to set.

ShowAlert

Temporarily overlay the key image with an alert icon.

Official Documentation

Fields of ShowAlert

context: String

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

ShowOk

Temporarily overlay the key image with a checkmark.

Official Documentation

Fields of ShowOk

context: String

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

GetSettings

Retrieve settings for an instance of an action via DidReceiveSettings.

Official Documentation

Fields of GetSettings

context: String

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

SetSettings

Store settings for an instance of an action.

Official Documentation

Fields of SetSettings

context: String

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

payload: S

The settings to save.

SetState

Set the state of an action.

Normally, Stream Deck changes the state of an action automatically when the key is pressed.

Official Documentation

Fields of SetState

context: String

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

payload: StatePayload

The desired state.

SendToPropertyInspector

Send data to the property inspector.

Official Documentation

Fields of SendToPropertyInspector

action: String

The uuid of the action.

context: String

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

payload: M

The message to send.

SwitchToProfile

Select a new profile.

Official Documentation

Fields of SwitchToProfile

context: String

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

device: String

The device to change the profile of.

payload: ProfilePayload

The profile to activate.

OpenUrl

Open a URL in the default browser.

Official Documentation

Fields of OpenUrl

payload: UrlPayload

The url to open.

GetGlobalSettings

Retrieve plugin settings for via DidReceiveGlobalSettings.

Official Documentation

Fields of GetGlobalSettings

context: String

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

SetGlobalSettings

Store plugin settings.

Official Documentation

Fields of SetGlobalSettings

context: String

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

payload: G

The settings to save.

LogMessage

Write to the log.

Official Documentation

Fields of LogMessage

payload: LogMessagePayload

The message to log.

Trait Implementations

impl<G: Debug, S: Debug, M: Debug> Debug for MessageOut<G, S, M>[src]

impl<G, S, M> Serialize for MessageOut<G, S, M> where
    G: Serialize,
    S: Serialize,
    M: Serialize
[src]

impl<G, S, MI, MO> Sink<MessageOut<G, S, MO>> for StreamDeckSocket<G, S, MI, MO> where
    G: Serialize,
    S: Serialize,
    MO: Serialize
[src]

type Error = StreamDeckSocketError

The type of value produced by the sink when an error occurs.

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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