Trait async_embedded_traits::serial::AsyncWrite [−][src]
Write half of a serial interface
Associated Types
type Error
[src]
Write error
type WriteByteFuture: Future<Output = Result<(), Self::Error>>
[src]
Write byte future for polling on completion
type WriteFuture: Future<Output = Result<(), Self::Error>>
[src]
Write future for polling on completion
type FlushFuture: Future<Output = Result<(), Self::Error>>
[src]
Flush future for polling on completion
Required methods
fn async_write_byte(&mut self, byte: u8) -> Self::WriteByteFuture
[src]
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
[src]
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
[src]
Ensures that none of the previously written words are still buffered
Implementors
impl<S: Default + 'static> AsyncWrite for S
[src]
type Error = S::Error
type WriteByteFuture = DefaultWriteByteFuture<'f, S>
type WriteFuture = DefaultWriteFuture<'f, S>
type FlushFuture = DefaultFlushFuture<'f, S>
fn async_write_byte(&mut self, byte: u8) -> Self::WriteByteFuture
[src]
fn async_write<'a>(&'a mut self, data: &'a [u8]) -> DefaultWriteFuture<'a, S>ⓘNotable traits for DefaultWriteFuture<'a, S>
impl<'a, S: Default> Future for DefaultWriteFuture<'a, S> type Output = Result<(), S::Error>;
[src]
Notable traits for DefaultWriteFuture<'a, S>
impl<'a, S: Default> Future for DefaultWriteFuture<'a, S> type Output = Result<(), S::Error>;
fn async_flush(&mut self) -> DefaultFlushFuture<'_, S>ⓘNotable traits for DefaultFlushFuture<'a, S>
impl<'a, S: Default> Future for DefaultFlushFuture<'a, S> type Output = Result<(), S::Error>;
[src]
Notable traits for DefaultFlushFuture<'a, S>
impl<'a, S: Default> Future for DefaultFlushFuture<'a, S> type Output = Result<(), S::Error>;