pub struct EReadingMode {
pub grayscale: u8,
pub temp: u8,
}Expand description
E-Reading display mode - grayscale with adjustable temperature.
Fields§
§grayscale: u8Grayscale level (0-4, maps to 1-5 internally).
temp: u8Temperature value.
Implementations§
Source§impl EReadingMode
impl EReadingMode
Sourcepub fn from_controller_state(state: &ControllerState) -> Self
pub fn from_controller_state(state: &ControllerState) -> Self
Create from a controller state snapshot.
Trait Implementations§
Source§impl Clone for EReadingMode
impl Clone for EReadingMode
Source§fn clone(&self) -> EReadingMode
fn clone(&self) -> EReadingMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EReadingMode
impl Debug for EReadingMode
Source§impl DisplayMode for EReadingMode
impl DisplayMode for EReadingMode
Source§fn apply(&self, controller: &AsusController) -> Result<(), ControllerError>
fn apply(&self, controller: &AsusController) -> Result<(), ControllerError>
Apply this mode using the controller.
Source§fn is_ereading(&self) -> bool
fn is_ereading(&self) -> bool
Whether this is an e-reading/monochrome mode.
impl Copy for EReadingMode
Auto Trait Implementations§
impl Freeze for EReadingMode
impl RefUnwindSafe for EReadingMode
impl Send for EReadingMode
impl Sync for EReadingMode
impl Unpin for EReadingMode
impl UnwindSafe for EReadingMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more