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