Struct mio_serial::SerialPortInfo
source · pub struct SerialPortInfo {
pub port_name: String,
pub port_type: SerialPortType,
}
Expand description
A device-independent implementation of serial port information
Fields§
§port_name: String
The short name of the serial port
port_type: SerialPortType
The hardware device type that exposes this port
Trait Implementations§
source§impl Clone for SerialPortInfo
impl Clone for SerialPortInfo
source§fn clone(&self) -> SerialPortInfo
fn clone(&self) -> SerialPortInfo
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 SerialPortInfo
impl Debug for SerialPortInfo
source§impl PartialEq<SerialPortInfo> for SerialPortInfo
impl PartialEq<SerialPortInfo> for SerialPortInfo
source§fn eq(&self, other: &SerialPortInfo) -> bool
fn eq(&self, other: &SerialPortInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.