pub struct DeviceDescriptor {
pub vendor_id: u16,
pub product_id: u16,
pub driver: DriverType,
pub ports: Vec<PortDescriptor>,
}Expand description
USB device identify + probed driver and ports.
Fields§
§vendor_id: u16§product_id: u16§driver: DriverType§ports: Vec<PortDescriptor>One entry per openable port (port_index 0..n).
Trait Implementations§
Source§impl Clone for DeviceDescriptor
impl Clone 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