1#[derive(Debug)] 2pub enum UsbtmcError { 3 Rusb(rusb::Error), 4 BulkIn, 5 BulkOut, 6 Exception, 7} 8 9impl From<rusb::Error> for UsbtmcError { 10 fn from(item: rusb::Error) -> Self { 11 UsbtmcError::Rusb(item) 12 } 13}