[][src]Struct streamdeck_rs::KeyPayload

pub struct KeyPayload<S> {
    pub settings: S,
    pub coordinates: Option<Coordinates>,
    pub state: u8,
    pub user_desired_state: Option<u8>,
}

Additional information about the key pressed.

Fields

settings: S

The stored settings for the action instance.

coordinates: Option<Coordinates>

The location of the key that was pressed, or None if this action instance is part of a multi action.

state: u8

The current state of the action instance.

user_desired_state: Option<u8>

The desired state of the action instance (if this instance is part of a multi action).

Trait Implementations

impl<S: Debug> Debug for KeyPayload<S>
[src]

impl<'de, S> Deserialize<'de> for KeyPayload<S> where
    S: Deserialize<'de>, 
[src]

Auto Trait Implementations

impl<S> Send for KeyPayload<S> where
    S: Send

impl<S> Sync for KeyPayload<S> where
    S: Sync

Blanket Implementations

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<T> Same for T

type Output = T

Should always be Self