Trait Sleep

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

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

Displays that can sleep to save power.

Required Associated Types§

Required Methods§

Source

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

Puts the display to sleep.

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, STATE: StateAwake> Sleep<<HW as EpdHw>::Spi, <HW as EpdHw>::Error> for Epd2In9<HW, STATE>

Source§

impl<HW: EpdHw, STATE: StateAwake> Sleep<<HW as EpdHw>::Spi, <HW as EpdHw>::Error> for Epd2In9V2<HW, STATE>