RKTK API Docs RKTK Home Repo

Trait DisplayConfigAsync

Source
pub trait DisplayConfigAsync {
    type Error;

    // Required methods
    async fn set_rotation(
        &mut self,
        rotation: DisplayRotation,
    ) -> Result<(), Self::Error>;
    async fn init(&mut self) -> Result<(), Self::Error>;
}
Available on crate feature async only.
Expand description

Common functions to all display modes.

Required Associated Types§

Source

type Error

Error.

Required Methods§

Source

async fn set_rotation( &mut self, rotation: DisplayRotation, ) -> Result<(), Self::Error>

Set display rotation.

Source

async fn init(&mut self) -> Result<(), Self::Error>

Initialise and configure the display for the given mode.

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§