Trait AsyncWriteOnlyDataCommand

Source
pub trait AsyncWriteOnlyDataCommand {
    // Required methods
    async fn send_commands(
        &mut self,
        cmd: DataFormat<'_>,
    ) -> Result<(), DisplayError>;
    async fn send_data(
        &mut self,
        buf: DataFormat<'_>,
    ) -> Result<(), DisplayError>;
}
Expand description

This trait implements a write-only interface for a display which has separate data and command modes. It is the responsibility of implementations to activate the correct mode in their implementation when corresponding method is called.

Required Methods§

Source

async fn send_commands( &mut self, cmd: DataFormat<'_>, ) -> Result<(), DisplayError>

Send a batch of commands to display

Source

async fn send_data(&mut self, buf: DataFormat<'_>) -> Result<(), DisplayError>

Send pixel data to display

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§