pub struct Config {
pub baudrate: u32,
pub word_length: WordLength,
pub parity: Parity,
pub stop_bits: StopBits,
}Fields§
§baudrate: u32§word_length: WordLength§parity: Parity§stop_bits: StopBitsImplementations§
Source§impl Config
impl Config
pub fn baudrate(self, baudrate: u32) -> Self
pub fn word_length(self, wordlength: WordLength) -> Self
pub fn word_length_8bits(self) -> Self
pub fn word_length_9bits(self) -> Self
pub fn parity(self, parity: Parity) -> Self
pub fn parity_none(self) -> Self
pub fn parity_even(self) -> Self
pub fn parity_odd(self) -> Self
pub fn stop_bits(self, stop_bits: StopBits) -> Self
Trait Implementations§
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