Struct serialport::SerialPortSettings [−][src]
pub struct SerialPortSettings { pub baud_rate: u32, pub data_bits: DataBits, pub flow_control: FlowControl, pub parity: Parity, pub stop_bits: StopBits, pub timeout: Duration, }
A struct containing all serial port settings
Fields
baud_rate: u32
The baud rate in symbols-per-second
data_bits: DataBits
Number of bits used to represent a character sent on the line
flow_control: FlowControl
The type of signalling to use for controlling data transfer
parity: Parity
The type of parity to use for error checking
stop_bits: StopBits
Number of bits to use to signal the end of a character
timeout: Duration
Amount of time to wait to receive data before timing out
Trait Implementations
impl Debug for SerialPortSettings
[src]
impl Debug for SerialPortSettings
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for SerialPortSettings
[src]
impl Copy for SerialPortSettings
impl Clone for SerialPortSettings
[src]
impl Clone for SerialPortSettings
fn clone(&self) -> SerialPortSettings
[src]
fn clone(&self) -> SerialPortSettings
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for SerialPortSettings
[src]
impl PartialEq for SerialPortSettings
fn eq(&self, other: &SerialPortSettings) -> bool
[src]
fn eq(&self, other: &SerialPortSettings) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &SerialPortSettings) -> bool
[src]
fn ne(&self, other: &SerialPortSettings) -> bool
This method tests for !=
.
impl Eq for SerialPortSettings
[src]
impl Eq for SerialPortSettings
impl Default for SerialPortSettings
[src]
impl Default for SerialPortSettings
fn default() -> SerialPortSettings
[src]
fn default() -> SerialPortSettings
Returns the "default value" for a type. Read more
Auto Trait Implementations
impl Send for SerialPortSettings
impl Send for SerialPortSettings
impl Sync for SerialPortSettings
impl Sync for SerialPortSettings