pub struct UsbDevice {
pub id: String,
pub vendor_id: u16,
pub product_id: u16,
pub description: Option<String>,
pub serial_number: Option<String>,
}Expand description
Discovered USB device
Fields§
§id: StringPlatform specific unique ID
vendor_id: u16Vendor ID
product_id: u16Product ID
description: Option<String>Optional device description
serial_number: Option<String>Optional serial number
Trait Implementations§
impl Eq for UsbDevice
impl StructuralPartialEq for UsbDevice
Auto Trait Implementations§
impl Freeze for UsbDevice
impl RefUnwindSafe for UsbDevice
impl Send for UsbDevice
impl Sync for UsbDevice
impl Unpin for UsbDevice
impl UnwindSafe for UsbDevice
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more