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 for SerialPortType
impl PartialEq 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 ==
.impl Eq for SerialPortType
impl StructuralPartialEq for SerialPortType
Auto Trait Implementations§
impl Freeze for SerialPortType
impl RefUnwindSafe for SerialPortType
impl Send for SerialPortType
impl Sync for SerialPortType
impl Unpin for SerialPortType
impl UnwindSafe for SerialPortType
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