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.
Variants§
SetTitle
Set the title of an action instance.
Fields
payload: TitlePayload
The title to set.
SetImage
Set the image of an action instance.
Fields
payload: ImagePayload
The image to set.
ShowAlert
Temporarily overlay the key image with an alert icon.
ShowOk
Temporarily overlay the key image with a checkmark.
GetSettings
Retrieve settings for an instance of an action via DidReceiveSettings.
SetSettings
Store settings for an instance of an action.
Fields
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.
Fields
payload: StatePayload
The desired state.
SendToPropertyInspector
Send data to the property inspector.
Fields
payload: M
The message to send.
SwitchToProfile
Select a new profile.
Fields
payload: ProfilePayload
The profile to activate.
OpenUrl
Open a URL in the default browser.
Fields
payload: UrlPayload
The url to open.
GetGlobalSettings
Retrieve plugin settings for via DidReceiveGlobalSettings.
SetGlobalSettings
Store plugin settings.
Fields
payload: G
The settings to save.
LogMessage
Write to the log.
Fields
payload: LogMessagePayload
The message to log.
Trait Implementations§
Source§impl<'de, G, S, M> Deserialize<'de> for MessageOut<G, S, M>
impl<'de, G, S, M> Deserialize<'de> for MessageOut<G, S, M>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl<G, S, M> Serialize for MessageOut<G, S, M>
impl<G, S, M> Serialize for MessageOut<G, S, M>
Source§impl<G, S, MI, MO> Sink<MessageOut<G, S, MO>> for StreamDeckSocket<G, S, MI, MO>
impl<G, S, MI, MO> Sink<MessageOut<G, S, MO>> for StreamDeckSocket<G, S, MI, MO>
Source§type Error = StreamDeckSocketError
type Error = StreamDeckSocketError
Source§fn poll_ready(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>>
fn poll_ready( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>
Sink
to receive a value. Read moreSource§fn start_send(
self: Pin<&mut Self>,
item: MessageOut<G, S, MO>,
) -> Result<(), Self::Error>
fn start_send( self: Pin<&mut Self>, item: MessageOut<G, S, MO>, ) -> Result<(), Self::Error>
poll_ready
which returned Poll::Ready(Ok(()))
. Read more