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]
impl Debug for UsbPortInfo
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for UsbPortInfo
[src]
impl Clone for UsbPortInfo
fn clone(&self) -> UsbPortInfo
[src]
fn clone(&self) -> UsbPortInfo
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for UsbPortInfo
[src]
impl PartialEq for UsbPortInfo
fn eq(&self, other: &UsbPortInfo) -> bool
[src]
fn eq(&self, other: &UsbPortInfo) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &UsbPortInfo) -> bool
[src]
fn ne(&self, other: &UsbPortInfo) -> bool
This method tests for !=
.
impl Eq for UsbPortInfo
[src]
impl Eq for UsbPortInfo
Auto Trait Implementations
impl Send for UsbPortInfo
impl Send for UsbPortInfo
impl Sync for UsbPortInfo
impl Sync for UsbPortInfo