Enum tokio_serial::SerialPortType
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
impl Clone for SerialPortType
impl Clone for SerialPortType
fn 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 moreimpl Debug for SerialPortType
impl Debug for SerialPortType
impl PartialEq<SerialPortType> for SerialPortType
impl PartialEq<SerialPortType> for SerialPortType
fn eq(&self, other: &SerialPortType) -> bool
fn eq(&self, other: &SerialPortType) -> bool
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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