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§
type DisplayOut
Required Methods§
Sourceasync fn sleep(self, spi: &mut SPI) -> Result<Self::DisplayOut, ERROR>
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.