Trait async_embedded_traits::serial::AsyncRead [−][src]
Read half of a serial interface
Associated Types
type Error[src]
Read error
type ReadByteFuture: Future<Output = Result<u8, Self::Error>>[src]
Read byte future for polling on completion
type ReadFuture: Future<Output = Result<(), Self::Error>>[src]
Read future for polling on completion
Required methods
fn async_read_byte(&mut self) -> Self::ReadByteFuture[src]
Reads a single byte from the serial interface
fn async_read<'a>(&'a mut self, data: &'a mut [u8]) -> Self::ReadFuture[src]
Reads an array of bytes from the serial interface