pub struct Config {
pub baudrate: Baud,
pub order: Order,
pub parity: Parity,
pub stopbits: StopBits,
pub wordlength: WordLength,
}Expand description
Serial configuration
Fields§
§baudrate: Baud§order: Order§parity: Parity§stopbits: StopBits§wordlength: WordLengthImplementations§
Source§impl Config
impl Config
Sourcepub fn parity_none(self) -> Self
pub fn parity_none(self) -> Self
Sets parity to no parity check
Sourcepub fn parity_even(self) -> Self
pub fn parity_even(self) -> Self
Sets parity check to even
Sourcepub fn parity_odd(self) -> Self
pub fn parity_odd(self) -> Self
Sets parity check to odd
Trait Implementations§
impl Copy 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 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