Actually refreshes the device list, can be safely ran inside [multi_thread](tokio::runtime::Builder::new_multi_thread) runtime
(hidapi: &mut HidApi)
| 16 | |
| 17 | /// Actually refreshes the device list, can be safely ran inside [multi_thread](tokio::runtime::Builder::new_multi_thread) runtime |
| 18 | pub 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 |
nothing calls this directly
no outgoing calls
no test coverage detected