Struct hidapi::HidApi [] [src]

pub struct HidApi {
    // some fields omitted
}

Methods

impl HidApi
[src]

fn new() -> Result<Self, &'static str>

fn refresh_devices(&mut self)

Refresh devices list

fn devices(&self) -> Vec<HidDeviceInfo>

fn open(&self, vendor_id: u16, product_id: u16) -> Result<HidDevice, &'static str>

fn open_path(&self, device_path: &str) -> Result<HidDevice, &'static str>

Trait Implementations

impl Drop for HidApi
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more