MCPcopy Create free account
hub / github.com/OpenActionAPI/rust-elgato-streamdeck / DeviceStateReader

Class DeviceStateReader

src/lib.rs:668–671  ·  view source on GitHub ↗

Button reader that keeps state of the Stream Deck and returns events instead of full states

Source from the content-addressed store, hash-verified

666
667/// Button reader that keeps state of the Stream Deck and returns events instead of full states
668pub struct DeviceStateReader {
669 device: Arc<StreamDeck>,
670 states: Mutex<DeviceState>,
671}
672
673impl DeviceStateReader {
674 /// Reads states and returns updates

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected