Struct mio_serial::UsbPortInfo
source · pub struct UsbPortInfo {
pub vid: u16,
pub pid: u16,
pub serial_number: Option<String>,
pub manufacturer: Option<String>,
pub product: Option<String>,
}Expand description
Contains all possible USB information about a SerialPort
Fields§
§vid: u16Vendor ID
pid: u16Product ID
serial_number: Option<String>Serial number (arbitrary string)
manufacturer: Option<String>Manufacturer (arbitrary string)
product: Option<String>Product name (arbitrary string)
Trait Implementations§
source§impl Clone for UsbPortInfo
impl Clone for UsbPortInfo
source§fn clone(&self) -> UsbPortInfo
fn clone(&self) -> UsbPortInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for UsbPortInfo
impl Debug for UsbPortInfo
source§impl PartialEq<UsbPortInfo> for UsbPortInfo
impl PartialEq<UsbPortInfo> for UsbPortInfo
source§fn eq(&self, other: &UsbPortInfo) -> bool
fn eq(&self, other: &UsbPortInfo) -> bool
This method tests for
self and other values to be equal, and is used
by ==.