[−][src]Trait async_embedded_traits::serial::AsyncWrite
Write half of a serial interface
Associated Types
type Error
Write error
type WriteByteFuture: Future<Output = Result<(), Self::Error>>
Write byte future for polling on completion
type WriteFuture: Future<Output = Result<(), Self::Error>>
Write future for polling on completion
type FlushFuture: Future<Output = Result<(), Self::Error>>
Flush future for polling on completion
Required methods
fn async_write_byte(&mut self, byte: u8) -> Self::WriteByteFuture
Writes a single byte to the serial interface
When the future completes, data may not be fully transmitted.
Call flush
to ensure that no data is left buffered.
fn async_write<'a>(&'a mut self, data: &'a [u8]) -> Self::WriteFuture
Writes an array of bytes to the serial interface
When the future completes, data may not be fully transmitted.
Call flush
to ensure that no data is left buffered.
fn async_flush(&mut self) -> Self::FlushFuture
Ensures that none of the previously written words are still buffered