pub trait DeviceCtl {
// Required methods
fn set_label(&self, label: &str) -> Result<()>;
fn info(&self) -> Result<DeviceInformation>;
fn lock(&self, timeout: Option<Duration>) -> Result<()>;
fn unlock(&self) -> Result<()>;
fn transmit(&self, command: &[u8], recv_capacity: usize) -> Result<Vec<u8>>;
}Required Methods§
Sourcefn info(&self) -> Result<DeviceInformation>
fn info(&self) -> Result<DeviceInformation>
Get device info,e.g. vendor id,product id