pub struct ModeStatusFeature { /* private fields */ }Expand description
Implements the ModeStatus / 0x8090 feature.
Implementations§
Source§impl ModeStatusFeature
impl ModeStatusFeature
Sourcepub async fn get_mode_status(&self) -> Result<ModeStatus, Hidpp20Error>
pub async fn get_mode_status(&self) -> Result<ModeStatus, Hidpp20Error>
Retrieves the current mode status.
Sourcepub async fn set_mode_status(
&self,
change: ModeStatusChange,
) -> Result<(), Hidpp20Error>
pub async fn set_mode_status( &self, change: ModeStatusChange, ) -> Result<(), Hidpp20Error>
Sets selected mode-status bits.
Sourcepub async fn set_performance_mode(
&self,
enabled: bool,
) -> Result<(), Hidpp20Error>
pub async fn set_performance_mode( &self, enabled: bool, ) -> Result<(), Hidpp20Error>
Enables or disables performance mode.
Sourcepub async fn get_device_config(
&self,
) -> Result<ModeStatusCapabilities, Hidpp20Error>
pub async fn get_device_config( &self, ) -> Result<ModeStatusCapabilities, Hidpp20Error>
Retrieves device capabilities for mode switching.
Trait Implementations§
Source§impl Clone for ModeStatusFeature
impl Clone for ModeStatusFeature
Source§fn clone(&self) -> ModeStatusFeature
fn clone(&self) -> ModeStatusFeature
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 moreSource§impl CreatableFeature for ModeStatusFeature
impl CreatableFeature for ModeStatusFeature
Source§const STARTING_VERSION: u8 = 1
const STARTING_VERSION: u8 = 1
The version of the feature the implementation starts to support.
impl Feature for ModeStatusFeature
Auto Trait Implementations§
impl !RefUnwindSafe for ModeStatusFeature
impl !UnwindSafe for ModeStatusFeature
impl Freeze for ModeStatusFeature
impl Send for ModeStatusFeature
impl Sync for ModeStatusFeature
impl Unpin for ModeStatusFeature
impl UnsafeUnpin for ModeStatusFeature
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