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 more
impl 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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn 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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more