pub trait AsyncMinitelBaudrateControl {
// Required methods
fn set_baudrate(&mut self, baudrate: Baudrate) -> Result<()>;
fn read_byte_blocking(&mut self) -> Result<u8>;
}Expand description
Ability to change the baudrate of the serial port
Required Methods§
Sourcefn set_baudrate(&mut self, baudrate: Baudrate) -> Result<()>
fn set_baudrate(&mut self, baudrate: Baudrate) -> Result<()>
Change the baudrate of the serial port
Sourcefn read_byte_blocking(&mut self) -> Result<u8>
fn read_byte_blocking(&mut self) -> Result<u8>
Read, non async
Implementors§
impl<'a, T> AsyncMinitelBaudrateControl for Port<'a, T>where
T: BorrowMut<UartDriver<'a>>,
Available on crate feature
espdoc and (crate features esp or espdoc) only.