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: StopBitsImplementations§
source§impl Config
impl Config
pub fn baudrate(self, baudrate: u32) -> Self
pub fn parity_none(self) -> Self
pub fn parity_even(self) -> Self
pub fn parity_odd(self) -> Self
pub fn data_bits(self, data_bits: DataBits) -> Self
pub fn stop_bits(self, stop_bits: StopBits) -> Self
pub fn symbol_length(&self) -> u8
Trait Implementations§
impl Copy 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