pub struct Config {
pub baudrate: Bps,
pub wordlength: WordLength,
pub parity: Parity,
pub stopbits: StopBits,
pub dma: DmaConfig,
}
Fields
baudrate: Bps
wordlength: WordLength
parity: Parity
stopbits: StopBits
dma: DmaConfig
Implementations
sourceimpl Config
impl Config
pub fn baudrate(self, baudrate: Bps) -> Self
pub fn parity_none(self) -> Self
pub fn parity_even(self) -> Self
pub fn parity_odd(self) -> Self
pub fn wordlength_8(self) -> Self
pub fn wordlength_9(self) -> Self
pub fn stopbits(self, stopbits: StopBits) -> Self
pub fn dma(self, dma: DmaConfig) -> Self
Trait Implementations
impl Copy for Config
impl StructuralPartialEq 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more