pub struct DeviceInfo { /* private fields */ }Expand description
Information about a USB device, containing information about a device without claiming it
Note: On WASM targets, a device must be claimed in order to get information about it in normal circumstances, so this is not as useful on WASM.
Trait Implementations§
Source§impl Clone for DeviceInfo
impl Clone for DeviceInfo
Source§impl Debug for DeviceInfo
impl Debug for DeviceInfo
Source§impl UsbDeviceInfo for DeviceInfo
impl UsbDeviceInfo for DeviceInfo
Source§async fn open(self) -> Result<Self::Device, Error>
async fn open(self) -> Result<Self::Device, Error>
Opens the USB connection, returning a Self::Device
Source§async fn product_id(&self) -> u16
async fn product_id(&self) -> u16
16 bit device Product ID
Source§async fn manufacturer_string(&self) -> Option<String>
async fn manufacturer_string(&self) -> Option<String>
Get the manufacturer string string of the device, if available without device IO Read more
Source§async fn product_string(&self) -> Option<String>
async fn product_string(&self) -> Option<String>
Get the product string of the device, if available without device IO
Auto Trait Implementations§
impl Freeze for DeviceInfo
impl RefUnwindSafe for DeviceInfo
impl Send for DeviceInfo
impl Sync for DeviceInfo
impl Unpin for DeviceInfo
impl UnsafeUnpin for DeviceInfo
impl UnwindSafe for DeviceInfo
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