Enum serial_port::SerialPortAddress
#[repr(u16)]pub enum SerialPortAddress {
COM1 = 1_016,
COM2 = 760,
COM3 = 1_000,
COM4 = 744,
}
Expand description
The base port I/O addresses for COM serial ports.
Variants§
COM1 = 1_016
The base port I/O address for the COM1 serial port.
COM2 = 760
The base port I/O address for the COM2 serial port.
COM3 = 1_000
The base port I/O address for the COM3 serial port.
COM4 = 744
The base port I/O address for the COM4 serial port.
Trait Implementations§
§impl Clone for SerialPortAddress
impl Clone for SerialPortAddress
§fn clone(&self) -> SerialPortAddress
fn clone(&self) -> SerialPortAddress
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 more§impl Debug for SerialPortAddress
impl Debug for SerialPortAddress
§impl FromStr for SerialPortAddress
impl FromStr for SerialPortAddress
§impl PartialEq<SerialPortAddress> for SerialPortAddress
impl PartialEq<SerialPortAddress> for SerialPortAddress
§fn eq(&self, other: &SerialPortAddress) -> bool
fn eq(&self, other: &SerialPortAddress) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl TryFrom<&str> for SerialPortAddress
impl TryFrom<&str> for SerialPortAddress
§impl TryFrom<u16> for SerialPortAddress
impl TryFrom<u16> for SerialPortAddress
impl Copy for SerialPortAddress
impl Eq for SerialPortAddress
impl StructuralEq for SerialPortAddress
impl StructuralPartialEq for SerialPortAddress
Auto Trait Implementations§
impl RefUnwindSafe for SerialPortAddress
impl Send for SerialPortAddress
impl Sync for SerialPortAddress
impl Unpin for SerialPortAddress
impl UnwindSafe for SerialPortAddress
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