openlogi-device 0.7.7

The contract between OpenLogi's HID++ layer and the HID stack beneath it.
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! OS HID hotplug events.

pub use crate::backend::{HotplugEvent, HotplugStream};

use super::InventoryError;
use crate::backend::HidBackend;

/// Subscribe to OS HID hotplug events through the shared process-wide backend.
pub fn watch_hotplug(backend: &dyn HidBackend) -> Result<HotplugStream, InventoryError> {
    Ok(backend.watch()?)
}