Enum serialport::SerialPortType [−][src]
pub enum SerialPortType { UsbPort(UsbPortInfo), PciPort, BluetoothPort, Unknown, }
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
impl Debug for SerialPortType
[src]
impl Debug for SerialPortType
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for SerialPortType
[src]
impl Clone for SerialPortType
fn clone(&self) -> SerialPortType
[src]
fn clone(&self) -> SerialPortType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for SerialPortType
[src]
impl PartialEq for SerialPortType
fn eq(&self, other: &SerialPortType) -> bool
[src]
fn eq(&self, other: &SerialPortType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &SerialPortType) -> bool
[src]
fn ne(&self, other: &SerialPortType) -> bool
This method tests for !=
.
impl Eq for SerialPortType
[src]
impl Eq for SerialPortType
Auto Trait Implementations
impl Send for SerialPortType
impl Send for SerialPortType
impl Sync for SerialPortType
impl Sync for SerialPortType