pub struct U3vDeviceInfo {
pub bus: String,
pub address: u8,
pub vendor_id: u16,
pub product_id: u16,
pub serial: Option<String>,
pub manufacturer: Option<String>,
pub model: Option<String>,
pub speed: Option<UsbSpeed>,
}Expand description
Information about a discovered USB3 Vision device.
Fields§
§bus: StringThe USB bus — the host controller — as the operating system names it.
address: u8USB device address on the bus. It changes when the device is plugged in again; the serial does not.
vendor_id: u16USB vendor ID.
product_id: u16USB product ID.
serial: Option<String>Serial number, from the USB string descriptor the operating system
caches; None when the device reports none.
manufacturer: Option<String>Manufacturer name, likewise. Windows caches none.
model: Option<String>Product/model name, likewise.
speed: Option<UsbSpeed>The speed the device enumerated at, when the operating system says.
Trait Implementations§
Source§impl Clone for U3vDeviceInfo
impl Clone for U3vDeviceInfo
Source§impl Debug for U3vDeviceInfo
impl Debug for U3vDeviceInfo
Source§impl Display for U3vDeviceInfo
impl Display for U3vDeviceInfo
impl Eq for U3vDeviceInfo
Source§impl PartialEq for U3vDeviceInfo
impl PartialEq for U3vDeviceInfo
impl StructuralPartialEq for U3vDeviceInfo
Auto Trait Implementations§
impl Freeze for U3vDeviceInfo
impl RefUnwindSafe for U3vDeviceInfo
impl Send for U3vDeviceInfo
impl Sync for U3vDeviceInfo
impl Unpin for U3vDeviceInfo
impl UnsafeUnpin for U3vDeviceInfo
impl UnwindSafe for U3vDeviceInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.