pub trait DisplayConfigAsync {
type Error;
// Required methods
async fn set_rotation(
&mut self,
rotation: DisplayRotation,
) -> Result<(), Self::Error>;
async fn init(&mut self) -> Result<(), Self::Error>;
}
Available on crate feature
async
only.Expand description
Common functions to all display modes.
Required Associated Types§
Required Methods§
Sourceasync fn set_rotation(
&mut self,
rotation: DisplayRotation,
) -> Result<(), Self::Error>
async fn set_rotation( &mut self, rotation: DisplayRotation, ) -> Result<(), Self::Error>
Set display rotation.
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.