pub struct DisableKeysFeature { /* private fields */ }Expand description
Implements the DisableKeys / 0x4521 feature.
Implementations§
Source§impl DisableKeysFeature
impl DisableKeysFeature
Sourcepub async fn get_capabilities(&self) -> Result<DisableableKeys, Hidpp20Error>
pub async fn get_capabilities(&self) -> Result<DisableableKeys, Hidpp20Error>
Retrieves the set of keys the device allows software to disable.
Sourcepub async fn get_disabled_keys(&self) -> Result<DisableableKeys, Hidpp20Error>
pub async fn get_disabled_keys(&self) -> Result<DisableableKeys, Hidpp20Error>
Retrieves the set of keys currently disabled.
Sourcepub async fn set_disabled_keys(
&self,
keys: DisableableKeys,
) -> Result<DisableableKeys, Hidpp20Error>
pub async fn set_disabled_keys( &self, keys: DisableableKeys, ) -> Result<DisableableKeys, Hidpp20Error>
Replaces the set of disabled keys and returns the device’s echo.
This replaces the whole set, so passing DisableableKeys::empty
re-enables every key. The device rejects keys it cannot disable.
Trait Implementations§
Source§impl Clone for DisableKeysFeature
impl Clone for DisableKeysFeature
Source§fn clone(&self) -> DisableKeysFeature
fn clone(&self) -> DisableKeysFeature
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 DisableKeysFeature
impl CreatableFeature for DisableKeysFeature
Source§const STARTING_VERSION: u8 = 0
const STARTING_VERSION: u8 = 0
The version of the feature the implementation starts to support.
impl Feature for DisableKeysFeature
Auto Trait Implementations§
impl !RefUnwindSafe for DisableKeysFeature
impl !UnwindSafe for DisableKeysFeature
impl Freeze for DisableKeysFeature
impl Send for DisableKeysFeature
impl Sync for DisableKeysFeature
impl Unpin for DisableKeysFeature
impl UnsafeUnpin for DisableKeysFeature
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