pub struct Settings {
pub baud_rate: u32,
pub timeout: u64,
pub data_bits: DataBits,
pub parity: Parity,
pub stop_bits: StopBits,
pub flow_control: FlowControl,
}
Expand description
Settings of a serial port connection.
Fields§
§baud_rate: u32
Baud rate in bits per second.
timeout: u64
Timeout duration in milliseconds.
data_bits: DataBits
Number of data bits.
parity: Parity
Parity bit mode.
stop_bits: StopBits
Number of stop bits.
flow_control: FlowControl
Flow control mode.
Implementations§
Trait Implementations§
Source§impl From<SerialPortSettings> for Settings
impl From<SerialPortSettings> for Settings
Source§fn from(settings: SerialPortSettings) -> Self
fn from(settings: SerialPortSettings) -> Self
Converts to this type from the input type.
Source§impl From<Settings> for SerialPortSettings
impl From<Settings> for SerialPortSettings
impl Copy for Settings
impl Eq for Settings
impl StructuralPartialEq for Settings
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
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