#[repr(u8)]
pub enum CapabilityRun {
Show 24 variants NoOp { state: CapabilityEvent, }, Rotate { state: CapabilityEvent, index: u8, increment: i8, }, LayerClear { state: CapabilityEvent, }, LayerState { state: CapabilityEvent, layer: u8, layer_state: State, }, LayerRotate { state: CapabilityEvent, direction: Direction, }, HidProtocol { state: CapabilityEvent, mode: Protocol, }, HidKeyboard { state: CapabilityEvent, id: Keyboard, }, HidKeyboardState { state: CapabilityEvent, id: Keyboard, key_state: State, }, HidConsumerControl { state: CapabilityEvent, id: ConsumerControl, }, HidSystemControl { state: CapabilityEvent, id: SystemControl, }, McuFlashMode { state: CapabilityEvent, }, HidLed { state: CapabilityEvent, id: LedIndicator, }, PixelAnimationControl { state: CapabilityEvent, mode: AnimationControl, }, PixelAnimationIndex { state: CapabilityEvent, index: u16, }, PixelFadeControl { state: CapabilityEvent, profile: u8, command: FadeCommand, arg: u8, }, PixelFadeLayer { state: CapabilityEvent, layer: u8, }, PixelFadeSet { state: CapabilityEvent, profile: u8, config: u8, period: u8, }, PixelGammaControl { state: CapabilityEvent, mode: GammaControl, }, PixelLedControl { state: CapabilityEvent, mode: LedControl, amount: u8, }, PixelTest { state: CapabilityEvent, test: PixelTest, index: u16, }, Analog { state: CapabilityEvent, }, HidioOpenUrl { state: CapabilityEvent, index: u16, }, HidioUnicodeString { state: CapabilityEvent, index: u16, }, HidioUnicodeState { state: CapabilityEvent, unicode: char, },
}
Expand description

CapabilityRun Used to run capabilities rather than map them out in a result guide

Variants

NoOp

Fields

No-op / None action 4 bytes

Rotate

Fields

index: u8
increment: i8

Rotation event trigger 6 bytes

LayerClear

Fields

Clears all layer states NOTE: Does not send trigger events 4 bytes

LayerState

Fields

layer: u8
layer_state: State

Updates layer to the specified state 6 bytes

LayerRotate

Fields

direction: Direction

Rotates through possible layers given the direction Uses internal state to keep track of the current layer 5 bytes

HidProtocol

Fields

mode: Protocol

HID Protocol Mode 5 bytes

HidKeyboard

Fields

USB HID keyboard event Handles press/released based on incoming state 5 bytes

HidKeyboardState

Fields

key_state: State

USB HID keyboard event Force state event 6 bytes

HidConsumerControl

USB HID Consumer Control Event Handles press/released based on incoming state 6 bytes

HidSystemControl

Fields

USB HID System Control Event Handles press/released based on incoming state 5 bytes

McuFlashMode

Fields

Enter Flash Mode Usually jumps to the bootloader 4 bytes

HidLed

Fields

USB HID Led event Handles press/released based on incoming state 5 bytes

PixelAnimationControl

Fields

Overall animation control 5 bytes

PixelAnimationIndex

Fields

index: u16

Activates the given indexed Animation 6 bytes

PixelFadeControl

Fields

profile: u8
command: FadeCommand
arg: u8

Fade control 7 bytes

PixelFadeLayer

Fields

layer: u8

Layer fade 5 bytes

PixelFadeSet

Fields

profile: u8
config: u8
period: u8

Fade set profile 7 bytes

PixelGammaControl

Fields

Enable/Disable/Toggle gamma correction 5 bytes

PixelLedControl

Fields

mode: LedControl
amount: u8

LED Control 6 bytes

PixelTest

Fields

test: PixelTest
index: u16

Pixel test 7 bytes

Analog

Fields

Analog Event Always a passthrough event 4 bytes

HidioOpenUrl

Fields

index: u16

Sends URL (using index stored unicode string) to host computer web browser 6 bytes

HidioUnicodeString

Fields

index: u16

Sends Unicode string (using index stored unicode string) to host computer 6 bytes

HidioUnicodeState

Fields

unicode: char

Sends Unicode character with state (Press or Release) 8 bytes

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Convert Capability to CapabilityRun Used for mainly for kll validation

Converts to this type from the input type.
Converts to this type from the input type.
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.