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: 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§
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 for UsbPortInfo
impl PartialEq 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 ==
.impl Eq for UsbPortInfo
impl StructuralPartialEq for UsbPortInfo
Auto Trait Implementations§
impl Freeze for UsbPortInfo
impl RefUnwindSafe for UsbPortInfo
impl Send for UsbPortInfo
impl Sync for UsbPortInfo
impl Unpin for UsbPortInfo
impl UnwindSafe for UsbPortInfo
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more