pub struct SetBacklightConfig {
pub enabled: bool,
pub options: BacklightOptions,
pub mode: BacklightMode,
pub effect: Option<BacklightEffect>,
pub current_level: u8,
pub duration_hands_out: u16,
pub duration_hands_in: u16,
pub duration_powered: u16,
}Expand description
Backlight configuration to write with
BacklightFeature::set_backlight_config.
Fields§
§enabled: boolWhether to enable the backlight system.
options: BacklightOptionsOptions to enable. Only BacklightOptions::WOW,
BacklightOptions::CROWN and BacklightOptions::PWR_SAVE are
writable; the device discards unsupported options.
mode: BacklightModeMode to select. BacklightMode::TemporaryManual cannot be set by
software.
effect: Option<BacklightEffect>Effect to apply, or None to leave the current effect unchanged.
current_level: u8Manual brightness level (0 = off, up to 7).
duration_hands_out: u16Fade-out duration after the last keystroke with no proximity, in 5-second units.
duration_hands_in: u16Fade-out duration while hands remain in the detection zone, in 5-second units.
duration_powered: u16Fade-out duration while externally powered, in 5-second units.
Trait Implementations§
Source§impl Clone for SetBacklightConfig
impl Clone for SetBacklightConfig
Source§fn clone(&self) -> SetBacklightConfig
fn clone(&self) -> SetBacklightConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SetBacklightConfig
Source§impl Debug for SetBacklightConfig
impl Debug for SetBacklightConfig
impl Eq for SetBacklightConfig
Source§impl Hash for SetBacklightConfig
impl Hash for SetBacklightConfig
Source§impl PartialEq for SetBacklightConfig
impl PartialEq for SetBacklightConfig
impl StructuralPartialEq for SetBacklightConfig
Auto Trait Implementations§
impl Freeze for SetBacklightConfig
impl RefUnwindSafe for SetBacklightConfig
impl Send for SetBacklightConfig
impl Sync for SetBacklightConfig
impl Unpin for SetBacklightConfig
impl UnsafeUnpin for SetBacklightConfig
impl UnwindSafe for SetBacklightConfig
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