Struct serialport::SerialPortSettings
source · 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,
}
Expand description
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
sourceimpl Clone for SerialPortSettings
impl Clone for SerialPortSettings
sourcefn clone(&self) -> SerialPortSettings
fn clone(&self) -> SerialPortSettings
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 SerialPortSettings
impl Debug for SerialPortSettings
sourceimpl Default for SerialPortSettings
impl Default for SerialPortSettings
sourcefn default() -> SerialPortSettings
fn default() -> SerialPortSettings
Returns the “default value” for a type. Read more
sourceimpl PartialEq<SerialPortSettings> for SerialPortSettings
impl PartialEq<SerialPortSettings> for SerialPortSettings
sourcefn eq(&self, other: &SerialPortSettings) -> bool
fn eq(&self, other: &SerialPortSettings) -> bool
impl Copy for SerialPortSettings
impl Eq for SerialPortSettings
impl StructuralEq for SerialPortSettings
impl StructuralPartialEq for SerialPortSettings
Auto Trait Implementations
impl RefUnwindSafe for SerialPortSettings
impl Send for SerialPortSettings
impl Sync for SerialPortSettings
impl Unpin for SerialPortSettings
impl UnwindSafe for SerialPortSettings
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