hidapi 2.4.1

Rust-y wrapper around hidapi
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use winapi::shared::guiddef::GUID;

use crate::{HidDevice, HidResult};

impl HidDevice {
    /// Get the container ID for a HID device.
    ///
    /// This function returns the `DEVPKEY_Device_ContainerId` property of the
    /// given device. This can be used to correlate different interfaces/ports
    /// on the same hardware device.
    pub fn get_container_id(&self) -> HidResult<GUID> {
        self.inner.get_container_id()
    }
}