pub struct BacklightFeature { /* private fields */ }Expand description
Implements the Backlight / 0x1982 feature (version 3).
Implementations§
Source§impl BacklightFeature
impl BacklightFeature
Sourcepub async fn get_backlight_config(
&self,
) -> Result<BacklightConfig, Hidpp20Error>
pub async fn get_backlight_config( &self, ) -> Result<BacklightConfig, Hidpp20Error>
Retrieves the current backlight configuration.
Sourcepub async fn set_backlight_config(
&self,
config: SetBacklightConfig,
) -> Result<(), Hidpp20Error>
pub async fn set_backlight_config( &self, config: SetBacklightConfig, ) -> Result<(), Hidpp20Error>
Writes the backlight configuration persistently (to non-volatile memory).
Sourcepub async fn get_backlight_info(&self) -> Result<BacklightInfo, Hidpp20Error>
pub async fn get_backlight_info(&self) -> Result<BacklightInfo, Hidpp20Error>
Retrieves general backlight information and out-of-box durations.
Sourcepub async fn set_backlight_effect(
&self,
effect: BacklightEffect,
) -> Result<(), Hidpp20Error>
pub async fn set_backlight_effect( &self, effect: BacklightEffect, ) -> Result<(), Hidpp20Error>
Applies a backlight effect temporarily (stored in RAM, not persisted).
Trait Implementations§
Source§impl CreatableFeature for BacklightFeature
impl CreatableFeature for BacklightFeature
Source§const STARTING_VERSION: u8 = 3
const STARTING_VERSION: u8 = 3
The version of the feature the implementation starts to support.
Source§impl EmittingFeature<BacklightEvent> for BacklightFeature
impl EmittingFeature<BacklightEvent> for BacklightFeature
Source§fn listen(&self) -> Receiver<BacklightEvent>
fn listen(&self) -> Receiver<BacklightEvent>
Creates a receiver that is being notified whenever a new event of type
T is emitted by the feature.impl Feature for BacklightFeature
Auto Trait Implementations§
impl !RefUnwindSafe for BacklightFeature
impl !UnwindSafe for BacklightFeature
impl Freeze for BacklightFeature
impl Send for BacklightFeature
impl Sync for BacklightFeature
impl Unpin for BacklightFeature
impl UnsafeUnpin for BacklightFeature
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