Struct serialport::SerialPortInfo
source · 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§
source§impl Clone for SerialPortInfo
impl Clone for SerialPortInfo
source§fn clone(&self) -> SerialPortInfo
fn clone(&self) -> SerialPortInfo
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 SerialPortInfo
impl Debug for SerialPortInfo
source§impl PartialEq for SerialPortInfo
impl PartialEq for SerialPortInfo
source§fn eq(&self, other: &SerialPortInfo) -> bool
fn eq(&self, other: &SerialPortInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SerialPortInfo
impl StructuralPartialEq for SerialPortInfo
Auto Trait Implementations§
impl Freeze for SerialPortInfo
impl RefUnwindSafe for SerialPortInfo
impl Send for SerialPortInfo
impl Sync for SerialPortInfo
impl Unpin for SerialPortInfo
impl UnwindSafe for SerialPortInfo
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