Enum streamdeck_rs::MessageOut
source · 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.
Grepresents the global settings that are persisted within the Stream Deck software.Srepresents the action settings that are persisted within the Stream Deck software.Mrepresents the messages that are sent to the property inspector.
Variants§
SetTitle
Fields
payload: TitlePayloadThe title to set.
Set the title of an action instance.
SetImage
Fields
payload: ImagePayloadThe image to set.
Set the image of an action instance.
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
Fields
payload: SThe settings to save.
Store settings for an instance of an action.
SetState
Fields
payload: StatePayloadThe desired state.
Set the state of an action.
Normally, Stream Deck changes the state of an action automatically when the key is pressed.
SendToPropertyInspector
Fields
payload: MThe message to send.
Send data to the property inspector.
SwitchToProfile
Fields
payload: ProfilePayloadThe profile to activate.
Select a new profile.
OpenUrl
Fields
payload: UrlPayloadThe url to open.
Open a URL in the default browser.
GetGlobalSettings
Retrieve plugin settings for via DidReceiveGlobalSettings.
SetGlobalSettings
Fields
payload: GThe settings to save.
Store plugin settings.
LogMessage
Fields
payload: LogMessagePayloadThe message to log.
Write to the log.
Trait Implementations§
source§impl<G, S, M> Serialize for MessageOut<G, S, M>where
G: Serialize,
S: Serialize,
M: Serialize,
impl<G, S, M> Serialize for MessageOut<G, S, M>where
G: Serialize,
S: Serialize,
M: Serialize,
source§impl<G, S, MI, MO> Sink<MessageOut<G, S, MO>> for StreamDeckSocket<G, S, MI, MO>where
G: Serialize,
S: Serialize,
MO: Serialize,
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
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