pub struct EyeCareMode {
pub level: u8,
}Expand description
Eye Care display mode - reduces blue light.
Fields§
§level: u8Blue light filter level (0-4).
Implementations§
Source§impl EyeCareMode
impl EyeCareMode
Sourcepub fn new(level: u8) -> Result<Self, ControllerError>
pub fn new(level: u8) -> Result<Self, ControllerError>
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 EyeCareMode
impl Clone for EyeCareMode
Source§fn clone(&self) -> EyeCareMode
fn clone(&self) -> EyeCareMode
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 EyeCareMode
impl Debug for EyeCareMode
Source§impl DisplayMode for EyeCareMode
impl DisplayMode for EyeCareMode
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 EyeCareMode
Auto Trait Implementations§
impl Freeze for EyeCareMode
impl RefUnwindSafe for EyeCareMode
impl Send for EyeCareMode
impl Sync for EyeCareMode
impl Unpin for EyeCareMode
impl UnwindSafe for EyeCareMode
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