Struct mio_serial::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: StringThe short name of the serial port
port_type: SerialPortTypeThe 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 more
sourceimpl 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
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &SerialPortInfo) -> bool
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
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more