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