[][src]Trait hid_cli::Device

pub trait Device {
    fn connect(vid: u16, pid: u16, serial: Option<&str>) -> Result<Self, Error>
    where
        Self: Sized
;
fn info(&mut self) -> Result<Info, Error>; }

Required methods

fn connect(vid: u16, pid: u16, serial: Option<&str>) -> Result<Self, Error> where
    Self: Sized

fn info(&mut self) -> Result<Info, Error>

Loading content...

Implementors

impl Device for HidDevice[src]

fn connect(vid: u16, pid: u16, serial: Option<&str>) -> Result<Self, Error>[src]

Connect to an HID device using vid/pid(/serial)

fn info(&mut self) -> Result<Info, Error>[src]

Fetch information for the connected device

Loading content...