Struct serialport::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: 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
sourceimpl Clone for UsbPortInfo
impl Clone for UsbPortInfo
sourcefn clone(&self) -> UsbPortInfo
fn clone(&self) -> UsbPortInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for UsbPortInfo
impl Debug for UsbPortInfo
sourceimpl PartialEq<UsbPortInfo> for UsbPortInfo
impl PartialEq<UsbPortInfo> for UsbPortInfo
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &UsbPortInfo) -> bool
fn ne(&self, other: &UsbPortInfo) -> bool
This method tests for !=
.
impl Eq for UsbPortInfo
impl StructuralEq for UsbPortInfo
impl StructuralPartialEq for UsbPortInfo
Auto Trait Implementations
impl RefUnwindSafe for UsbPortInfo
impl Send for UsbPortInfo
impl Sync for UsbPortInfo
impl Unpin for UsbPortInfo
impl UnwindSafe for UsbPortInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more