pub struct UsbSerialPortInfo {
pub identifier: String,
pub port_name: String,
pub port_info: UsbPortInfo,
}Expand description
Information about a serial port
Fields§
§identifier: StringThe identifier that the regex will match against
port_name: StringThe name of the port
port_info: UsbPortInfoInformation about the port
Trait Implementations§
Source§impl Clone for UsbSerialPortInfo
impl Clone for UsbSerialPortInfo
Source§fn clone(&self) -> UsbSerialPortInfo
fn clone(&self) -> UsbSerialPortInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UsbSerialPortInfo
impl Debug for UsbSerialPortInfo
Source§impl PartialEq for UsbSerialPortInfo
impl PartialEq for UsbSerialPortInfo
Source§fn eq(&self, other: &UsbSerialPortInfo) -> bool
fn eq(&self, other: &UsbSerialPortInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UsbSerialPortInfo
impl Serialize for UsbSerialPortInfo
impl Eq for UsbSerialPortInfo
impl StructuralPartialEq for UsbSerialPortInfo
Auto Trait Implementations§
impl Freeze for UsbSerialPortInfo
impl RefUnwindSafe for UsbSerialPortInfo
impl Send for UsbSerialPortInfo
impl Sync for UsbSerialPortInfo
impl Unpin for UsbSerialPortInfo
impl UnsafeUnpin for UsbSerialPortInfo
impl UnwindSafe for UsbSerialPortInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more