Displayable

Trait Displayable 

Source
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§

Source

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.

Implementors§

Source§

impl<HW> Displayable<<HW as SpiHw>::Spi, <HW as ErrorHw>::Error> for Epd2In9<HW, StateReady>
where HW: DcHw + BusyHw + DelayHw + ErrorHw + SpiHw, HW::Error: From<<HW::Dc as ErrorType>::Error> + From<<HW::Busy as ErrorType>::Error> + From<<HW::Spi as ErrorType>::Error>,

Source§

impl<HW> Displayable<<HW as SpiHw>::Spi, <HW as ErrorHw>::Error> for Epd2In9V2<HW, StateReady>
where HW: BusyHw + DcHw + SpiHw + ErrorHw, HW::Error: From<<HW::Busy as ErrorType>::Error> + From<<HW::Dc as ErrorType>::Error> + From<<HW::Spi as ErrorType>::Error>,