pub struct Config {
pub baudrate: u32,
pub data_bits: DataBits,
pub parity: Parity,
pub stop_bits: StopBits,
}
Expand description
UART configuration
Fields§
§baudrate: u32
§data_bits: DataBits
§parity: Parity
§stop_bits: StopBits
Implementations§
source§impl Config
impl Config
pub fn baudrate(self, baudrate: u32) -> Config
pub fn parity_none(self) -> Config
pub fn parity_even(self) -> Config
pub fn parity_odd(self) -> Config
pub fn data_bits(self, data_bits: DataBits) -> Config
pub fn stop_bits(self, stop_bits: StopBits) -> Config
pub fn symbol_length(&self) -> u8
Trait Implementations§
impl Copy for Config
Auto Trait Implementations§
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