pub trait Displayable<SPI: SpiDevice, ERROR> {
// Required method
async fn update_display(&mut self, spi: &mut SPI) -> Result<(), ERROR>;
}
Expand description
Base trait for any display where the display can be updated separate from its framebuffer data.
Required Methods§
Sourceasync fn update_display(&mut self, spi: &mut SPI) -> Result<(), ERROR>
async fn update_display(&mut self, spi: &mut SPI) -> Result<(), ERROR>
Updates (refreshes) the display based on what has been written to the framebuffer.
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.