[−][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]
fn clone(&self) -> Config
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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,
fn borrow_mut(&mut self) -> &mut T
[src]
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>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,