pub struct Config {
pub baudrate: Bps,
pub wordlength: WordLength,
pub parity: Parity,
pub stopbits: StopBits,
}
Fields§
§baudrate: Bps
§wordlength: WordLength
§parity: Parity
§stopbits: StopBits
Implementations§
Source§impl Config
impl Config
pub fn baudrate(self, baudrate: Bps) -> Self
pub fn wordlength(self, wordlength: WordLength) -> Self
pub fn wordlength_8bits(self) -> Self
pub fn wordlength_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 stopbits(self, stopbits: 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