Sleep

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, STATE> Sleep<<HW as SpiHw>::Spi, <HW as ErrorHw>::Error> for Epd2In9<HW, STATE>
where HW: DcHw + BusyHw + ErrorHw + SpiHw, HW::Error: From<<HW::Dc as ErrorType>::Error> + From<<HW::Busy as ErrorType>::Error> + From<<HW::Spi as ErrorType>::Error>, STATE: StateAwake,

Source§

impl<HW, STATE: StateAwake> Sleep<<HW as SpiHw>::Spi, <HW as ErrorHw>::Error> for Epd2In9V2<HW, STATE>
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>,