pub struct UsbDeviceInfo {
pub index: u32,
pub name: String,
pub description: String,
pub vendor_id: Option<u16>,
pub product_id: Option<u16>,
pub serial_number: Option<String>,
pub device_path: Option<String>,
}Expand description
Description of a USB video device discovered through Android’s UsbManager.
Fields§
§index: u32Stable index within the current scan result.
name: StringUser-facing device name.
description: StringAdditional device description supplied by Android.
vendor_id: Option<u16>USB vendor identifier, when Android exposes it.
product_id: Option<u16>USB product identifier, when Android exposes it.
serial_number: Option<String>USB serial number, when the application has permission to read it.
device_path: Option<String>Android USB device path used by the permission and open calls.
Trait Implementations§
Source§impl Clone for UsbDeviceInfo
impl Clone for UsbDeviceInfo
Auto Trait Implementations§
impl Forget for UsbDeviceInfo
impl Freeze for UsbDeviceInfo
impl RefUnwindSafe for UsbDeviceInfo
impl Send for UsbDeviceInfo
impl Sync for UsbDeviceInfo
impl Unpin for UsbDeviceInfo
impl UnsafeUnpin for UsbDeviceInfo
impl UnwindSafe for UsbDeviceInfo
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