Wraps an already-opened [StreamDeck], allowing the caller to control which thread performs the HID open
(device: StreamDeck)
| 51 | impl 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 |