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>;
}
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>;
}