Struct tokio_serial::UsbPortInfo
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
impl Clone for UsbPortInfo
impl Clone for UsbPortInfo
fn 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 moreimpl Debug for UsbPortInfo
impl Debug for UsbPortInfo
impl PartialEq<UsbPortInfo> for UsbPortInfo
impl PartialEq<UsbPortInfo> for UsbPortInfo
fn eq(&self, other: &UsbPortInfo) -> bool
fn eq(&self, other: &UsbPortInfo) -> bool
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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