Wake

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, W> Wake<<HW as SpiHw>::Spi, <HW as ErrorHw>::Error> for Epd2In9<HW, StateAsleep<W>>
where HW: ResetHw + BusyHw + DelayHw + ErrorHw + SpiHw, HW::Error: From<<HW::Reset as ErrorType>::Error> + From<<HW::Busy as ErrorType>::Error> + From<<HW::Spi as ErrorType>::Error>, W: StateAwake,

Source§

impl<HW, W: StateAwake> Wake<<HW as SpiHw>::Spi, <HW as ErrorHw>::Error> for Epd2In9V2<HW, StateAsleep<W>>
where HW: BusyHw + DcHw + ResetHw + DelayHw + SpiHw + ErrorHw, HW::Error: From<<HW::Busy as ErrorType>::Error> + From<<HW::Dc as ErrorType>::Error> + From<<HW::Reset as ErrorType>::Error> + From<<HW::Spi as ErrorType>::Error>,