Struct webusb::UsbDevice[][src]

pub struct UsbDevice {
Show 18 fields pub configurations: Vec<UsbConfiguration>, pub configuration: Option<UsbConfiguration>, pub device_class: u8, pub device_subclass: u8, pub device_protocol: u8, pub device_version_major: u8, pub device_version_minor: u8, pub device_version_subminor: u8, pub manufacturer_name: Option<String>, pub product_id: u16, pub product_name: Option<String>, pub serial_number: Option<String>, pub usb_version_major: u8, pub usb_version_minor: u8, pub usb_version_subminor: u8, pub vendor_id: u16, pub opened: bool, pub url: Option<String>, // some fields omitted
}
Expand description

Represents a WebUSB UsbDevice.

Fields

configurations: Vec<UsbConfiguration>configuration: Option<UsbConfiguration>device_class: u8device_subclass: u8device_protocol: u8device_version_major: u8device_version_minor: u8device_version_subminor: u8manufacturer_name: Option<String>product_id: u16product_name: Option<String>serial_number: Option<String>usb_version_major: u8usb_version_minor: u8usb_version_subminor: u8vendor_id: u16opened: boolurl: Option<String>

The WEBUSB_URL value. Present in devices with the WebUSB Platform Capability Descriptor.

Implementations

configuration_value is the bConfigurationValue of the device configuration.

Trait Implementations

Serialize this value into the given Serde serializer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.