[−][src]Struct bl602_hal::serial::Config
Serial configuration
Fields
baudrate: Baud
order: Order
parity: Parity
stopbits: StopBits
wordlength: WordLength
Implementations
impl Config
[src][−]
pub fn baudrate(self, baudrate: impl Into<Baud>) -> Self
[src][−]
Sets the target baudrate
pub fn parity_none(self) -> Self
[src][−]
Sets parity to no parity check
pub fn parity_even(self) -> Self
[src][−]
Sets parity check to even
pub fn parity_odd(self) -> Self
[src][−]
Sets parity check to odd
pub fn stopbits(self, stopbits: StopBits) -> Self
[src][−]
Sets the target stopbits
Trait Implementations
impl Clone for Config
[src][+]
impl Copy for Config
[src]
impl Debug for Config
[src][+]
impl Default for Config
[src][+]
impl PartialEq<Config> for Config
[src][+]
impl StructuralPartialEq for Config
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,