pub struct LineConfig {
pub baud_rate: u32,
pub data_bits: DataBits,
pub parity: Parity,
pub stop_bits: StopBits,
}Expand description
Baud rate and framing for crate::SerialPortHandle::set_line_config.
Fields§
§baud_rate: u32§data_bits: DataBits§parity: Parity§stop_bits: StopBitsTrait Implementations§
Source§impl Clone for LineConfig
impl Clone for LineConfig
Source§fn clone(&self) -> LineConfig
fn clone(&self) -> LineConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LineConfig
Source§impl Debug for LineConfig
impl Debug for LineConfig
Source§impl Default for LineConfig
impl Default for LineConfig
impl Eq for LineConfig
Source§impl PartialEq for LineConfig
impl PartialEq for LineConfig
Source§fn eq(&self, other: &LineConfig) -> bool
fn eq(&self, other: &LineConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LineConfig
Auto Trait Implementations§
impl Freeze for LineConfig
impl RefUnwindSafe for LineConfig
impl Send for LineConfig
impl Sync for LineConfig
impl Unpin for LineConfig
impl UnsafeUnpin for LineConfig
impl UnwindSafe for LineConfig
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