pub trait DisplayMode:
Debug
+ Send
+ Sync {
// Required methods
fn apply(&self, controller: &AsusController) -> Result<(), ControllerError>;
fn symbol(&self) -> &'static [u8] ⓘ;
fn mode_id(&self) -> i32;
// Provided method
fn is_ereading(&self) -> bool { ... }
}Expand description
Trait for display mode implementations.
Each display mode knows how to apply itself to the ASUS controller.
Required Methods§
Sourcefn apply(&self, controller: &AsusController) -> Result<(), ControllerError>
fn apply(&self, controller: &AsusController) -> Result<(), ControllerError>
Apply this mode using the controller.
Provided Methods§
Sourcefn is_ereading(&self) -> bool
fn is_ereading(&self) -> bool
Whether this is an e-reading/monochrome mode.