Struct tokio_serial::SerialPortInfo [−]
pub struct SerialPortInfo { pub port_name: String, pub port_type: SerialPortType, }
Expand description
A device-independent implementation of serial port information
Fields
port_name: String
The short name of the serial port
port_type: SerialPortType
The hardware device type that exposes this port
Trait Implementations
impl Clone for SerialPortInfo
impl Clone for SerialPortInfo
pub fn clone(&self) -> SerialPortInfo
pub fn clone(&self) -> SerialPortInfo
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for SerialPortInfo
impl Debug for SerialPortInfo
impl PartialEq<SerialPortInfo> for SerialPortInfo
impl PartialEq<SerialPortInfo> for SerialPortInfo
pub fn eq(&self, other: &SerialPortInfo) -> bool
pub fn eq(&self, other: &SerialPortInfo) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &SerialPortInfo) -> bool
pub fn ne(&self, other: &SerialPortInfo) -> bool
This method tests for !=
.
impl Eq for SerialPortInfo
impl StructuralEq for SerialPortInfo
impl StructuralPartialEq for SerialPortInfo
Auto Trait Implementations
impl RefUnwindSafe for SerialPortInfo
impl Send for SerialPortInfo
impl Sync for SerialPortInfo
impl Unpin for SerialPortInfo
impl UnwindSafe for SerialPortInfo
Blanket Implementations
Mutably borrows from an owned value. Read more