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

Function refresh_device_list_async

src/asynchronous.rs:18–20  ·  view source on GitHub ↗

Actually refreshes the device list, can be safely ran inside [multi_thread](tokio::runtime::Builder::new_multi_thread) runtime

(hidapi: &mut HidApi)

Source from the content-addressed store, hash-verified

16
17/// Actually refreshes the device list, can be safely ran inside [multi_thread](tokio::runtime::Builder::new_multi_thread) runtime
18pub fn refresh_device_list_async(hidapi: &mut HidApi) -> HidResult<()> {
19 block_in_place(move || hidapi.refresh_devices())
20}
21
22/// Returns a list of devices as (Kind, Serial Number) that could be found using HidApi,
23/// can be safely ran inside [multi_thread](tokio::runtime::Builder::new_multi_thread) runtime

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected