pub struct ControllerState {
pub mode_id: i32,
pub is_monochrome: bool,
pub dimming: i32,
pub manual_slider: u8,
pub eyecare_level: u8,
pub ereading_grayscale: u8,
pub ereading_temp: u8,
pub last_non_ereading_mode: i32,
}Expand description
A snapshot of the controller’s current state.
This captures all slider/mode values at a point in time.
Use DisplayController::get_state to obtain a snapshot.
Fields§
§mode_id: i32The current mode ID (1=Normal, 2=Vivid, 6=Manual, 7=EyeCare).
is_monochrome: boolWhether monochrome/e-reading mode is active.
dimming: i32Display dimming level (40-100 in splendid units).
manual_slider: u8Manual mode color temperature slider value (0-100).
eyecare_level: u8Eye care mode level (0-4).
ereading_grayscale: u8E-reading grayscale level (0-4).
ereading_temp: u8E-reading temperature value.
last_non_ereading_mode: i32The last non-e-reading mode ID (for restoration).
Trait Implementations§
Source§impl Clone for ControllerState
impl Clone for ControllerState
Source§fn clone(&self) -> ControllerState
fn clone(&self) -> ControllerState
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 ControllerState
impl Debug for ControllerState
Source§impl Default for ControllerState
impl Default for ControllerState
Source§fn default() -> ControllerState
fn default() -> ControllerState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ControllerState
impl RefUnwindSafe for ControllerState
impl Send for ControllerState
impl Sync for ControllerState
impl Unpin for ControllerState
impl UnwindSafe for ControllerState
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