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

Method from

src/asynchronous.rs:53–58  ·  view source on GitHub ↗

Wraps an already-opened [StreamDeck], allowing the caller to control which thread performs the HID open

(device: StreamDeck)

Source from the content-addressed store, hash-verified

51impl From<StreamDeck> for AsyncStreamDeck {
52 /// Wraps an already-opened [StreamDeck], allowing the caller to control which thread performs the HID open
53 fn from(device: StreamDeck) -> AsyncStreamDeck {
54 AsyncStreamDeck {
55 kind: device.kind(),
56 device: Arc::new(Mutex::new(device)),
57 }
58 }
59}
60
61/// Instance methods of the struct

Callers

nothing calls this directly

Calls 1

kindMethod · 0.45

Tested by

no test coverage detected