pub struct Config {
pub clock_config: ClockConfig,
pub parity: Parity,
pub stopbits: Stopbits,
pub wordsize: WordSize,
pub enable_tx: bool,
pub enable_rx: bool,
}Fields§
§clock_config: ClockConfig§parity: Parity§stopbits: Stopbits§wordsize: WordSize§enable_tx: bool§enable_rx: boolImplementations§
Source§impl Config
impl Config
pub fn new_with_clock_config(clock_config: ClockConfig) -> Self
pub fn with_clock_config(self, clock_config: ClockConfig) -> Self
pub fn with_parity_none(self) -> Self
pub fn with_parity_even(self) -> Self
pub fn with_parity_odd(self) -> Self
pub fn with_stopbits(self, stopbits: Stopbits) -> Self
pub fn with_wordsize(self, wordsize: WordSize) -> Self
Trait Implementations§
impl Copy for Config
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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