Device

Trait Device 

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

Required Methods§

Source

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

Source

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

Implementors§