Enum serialport::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
sourceimpl Clone for SerialPortType
impl Clone for SerialPortType
sourcefn clone(&self) -> SerialPortType
fn clone(&self) -> SerialPortType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SerialPortType
impl Debug for SerialPortType
sourceimpl PartialEq<SerialPortType> for SerialPortType
impl PartialEq<SerialPortType> for SerialPortType
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &SerialPortType) -> bool
fn ne(&self, other: &SerialPortType) -> bool
This method tests for !=
.
impl Eq for SerialPortType
impl StructuralEq for SerialPortType
impl StructuralPartialEq for SerialPortType
Auto Trait Implementations
impl RefUnwindSafe for SerialPortType
impl Send for SerialPortType
impl Sync for SerialPortType
impl Unpin for SerialPortType
impl UnwindSafe for SerialPortType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more