pub struct DeviceDescriptor {
pub index: usize,
pub vid: u16,
pub pid: u16,
pub serial: Option<String>,
pub manufacturer: Option<String>,
pub product: Option<String>,
}Expand description
USB identity collected during enumeration and completed during open.
Fields§
§index: usizeIndex among currently visible devices with the selected USB IDs.
vid: u16USB vendor ID.
pid: u16USB product ID.
serial: Option<String>Device serial string, when the OS/browser supplies it.
manufacturer: Option<String>Manufacturer string, when available.
product: Option<String>Product string, when available.
Trait Implementations§
Source§impl Clone for DeviceDescriptor
impl Clone for DeviceDescriptor
Source§impl Debug for DeviceDescriptor
impl Debug for DeviceDescriptor
impl Eq for DeviceDescriptor
Source§impl PartialEq for DeviceDescriptor
impl PartialEq for DeviceDescriptor
impl StructuralPartialEq for DeviceDescriptor
Auto Trait Implementations§
impl Freeze for DeviceDescriptor
impl RefUnwindSafe for DeviceDescriptor
impl Send for DeviceDescriptor
impl Sync for DeviceDescriptor
impl Unpin for DeviceDescriptor
impl UnsafeUnpin for DeviceDescriptor
impl UnwindSafe for DeviceDescriptor
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