pub struct ManualMode {
pub value: u8,
}Expand description
Manual display mode - user-adjustable color temperature.
Fields§
§value: u8Color temperature value (0-100).
Implementations§
Source§impl ManualMode
impl ManualMode
Sourcepub fn new(value: u8) -> Result<Self, ControllerError>
pub fn new(value: 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 ManualMode
impl Clone for ManualMode
Source§fn clone(&self) -> ManualMode
fn clone(&self) -> ManualMode
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 ManualMode
impl Debug for ManualMode
Source§impl DisplayMode for ManualMode
impl DisplayMode for ManualMode
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 ManualMode
Auto Trait Implementations§
impl Freeze for ManualMode
impl RefUnwindSafe for ManualMode
impl Send for ManualMode
impl Sync for ManualMode
impl Unpin for ManualMode
impl UnwindSafe for ManualMode
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