pub enum MessageOut<G, S, M> {
Show 13 variants 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, },
}
Expand description

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

Fields

§context: String

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

§payload: TitlePayload

The title to set.

Set the title of an action instance.

Official Documentation

§

SetImage

Fields

§context: String

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

§payload: ImagePayload

The image to set.

Set the image of an action instance.

Official Documentation

§

ShowAlert

Fields

§context: String

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

Temporarily overlay the key image with an alert icon.

Official Documentation

§

ShowOk

Fields

§context: String

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

Temporarily overlay the key image with a checkmark.

Official Documentation

§

GetSettings

Fields

§context: String

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

Retrieve settings for an instance of an action via DidReceiveSettings.

Official Documentation

§

SetSettings

Fields

§context: String

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

§payload: S

The settings to save.

Store settings for an instance of an action.

Official Documentation

§

SetState

Fields

§context: String

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

§payload: StatePayload

The desired state.

Set the state of an action.

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

Official Documentation

§

SendToPropertyInspector

Fields

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

Send data to the property inspector.

Official Documentation

§

SwitchToProfile

Fields

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

Select a new profile.

Official Documentation

§

OpenUrl

Fields

§payload: UrlPayload

The url to open.

Open a URL in the default browser.

Official Documentation

§

GetGlobalSettings

Fields

§context: String

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

Retrieve plugin settings for via DidReceiveGlobalSettings.

Official Documentation

§

SetGlobalSettings

Fields

§context: String

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

§payload: G

The settings to save.

Store plugin settings.

Official Documentation

§

LogMessage

Fields

§payload: LogMessagePayload

The message to log.

Write to the log.

Official Documentation

Trait Implementations§

source§

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

source§

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

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

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

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

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

§

type Error = StreamDeckSocketError

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

fn poll_ready(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>

Attempts to prepare the Sink to receive a value. Read more
source§

fn start_send(
self: Pin<&mut Self>,
item: MessageOut<G, S, MO>
) -> Result<(), Self::Error>

Begin the process of sending a value to the sink. Each call to this function must be preceded by a successful call to poll_ready which returned Poll::Ready(Ok(())). Read more
source§

fn poll_flush(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>

Flush any remaining output from this sink. Read more
source§

fn poll_close(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>

Flush any remaining output and close this sink, if necessary. Read more

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§

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> SendSyncUnwindSafe for Twhere
T: Send + Sync + UnwindSafe + ?Sized,