Enum mio_serial::SerialPortType
source · pub enum SerialPortType {
UsbPort(UsbPortInfo),
PciPort,
BluetoothPort,
Unknown,
}
Expand description
The physical type of a SerialPort
Variants§
UsbPort(UsbPortInfo)
The serial port is connected via USB
PciPort
The serial port is connected via PCI (permanent port)
BluetoothPort
The serial port is connected via Bluetooth
Unknown
It can’t be determined how the serial port is connected
Trait Implementations§
source§impl Clone for SerialPortType
impl Clone for SerialPortType
source§fn clone(&self) -> SerialPortType
fn clone(&self) -> SerialPortType
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 SerialPortType
impl Debug for SerialPortType
source§impl PartialEq<SerialPortType> for SerialPortType
impl PartialEq<SerialPortType> for SerialPortType
source§fn eq(&self, other: &SerialPortType) -> bool
fn eq(&self, other: &SerialPortType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.