Struct serialport::UsbPortInfo
[−]
[src]
pub struct UsbPortInfo { pub vid: u16, pub pid: u16, pub serial_number: Option<String>, pub manufacturer: Option<String>, pub product: Option<String>, }
Contains all possible USB information about a SerialPort
Fields
vid: u16
Vendor ID
pid: u16
Product ID
serial_number: Option<String>
Serial number (arbitrary string)
manufacturer: Option<String>
Manufacturer (arbitrary string)
product: Option<String>
Product name (arbitrary string)
Trait Implementations
impl Debug for UsbPortInfo
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for UsbPortInfo
[src]
fn clone(&self) -> UsbPortInfo
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for UsbPortInfo
[src]
fn eq(&self, __arg_0: &UsbPortInfo) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &UsbPortInfo) -> bool
[src]
This method tests for !=
.