Struct rodbus::SerialSettings
source · pub struct SerialSettings {
pub baud_rate: u32,
pub data_bits: DataBits,
pub flow_control: FlowControl,
pub stop_bits: StopBits,
pub parity: Parity,
}Expand description
Serial port settings
Fields§
§baud_rate: u32Baud rate of the port
data_bits: DataBitsNumber of data bits
flow_control: FlowControlTypes of flow control
stop_bits: StopBitsNumber of stop bits
parity: ParityParity setting
Trait Implementations§
source§impl Clone for SerialSettings
impl Clone for SerialSettings
source§fn clone(&self) -> SerialSettings
fn clone(&self) -> SerialSettings
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