Trait Wake

Source
pub trait Wake<SPI: SpiDevice, ERROR> {
    type DisplayOut;

    // Required method
    async fn wake(self, spi: &mut SPI) -> Result<Self::DisplayOut, ERROR>;
}
Expand description

Displays that can be woken from a sleep state.

Required Associated Types§

Required Methods§

Source

async fn wake(self, spi: &mut SPI) -> Result<Self::DisplayOut, ERROR>

Wakes and re-initialises the display (if necessary) if it’s asleep.

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: EpdHw, W: StateAwake> Wake<<HW as EpdHw>::Spi, <HW as EpdHw>::Error> for Epd2In9<HW, StateAsleep<W>>

Source§

impl<HW: EpdHw, W: StateAwake> Wake<<HW as EpdHw>::Spi, <HW as EpdHw>::Error> for Epd2In9V2<HW, StateAsleep<W>>