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
sourceimpl Clone for SerialPortInfo
impl Clone for SerialPortInfo
sourcefn clone(&self) -> SerialPortInfo
fn clone(&self) -> SerialPortInfo
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 moresourceimpl Debug for SerialPortInfo
impl Debug for SerialPortInfo
sourceimpl PartialEq<SerialPortInfo> for SerialPortInfo
impl PartialEq<SerialPortInfo> for SerialPortInfo
sourcefn eq(&self, other: &SerialPortInfo) -> bool
fn eq(&self, other: &SerialPortInfo) -> bool
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
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