pub struct FnInversionWithDefaultStateFeature { /* private fields */ }Expand description
Implements FnInversionWithDefaultState / 0x40a2.
This is the single-host predecessor of
FnInversionMultiHostFeature (0x40a3): the inversion state is global
rather than per host slot.
Implementations§
Source§impl FnInversionWithDefaultStateFeature
impl FnInversionWithDefaultStateFeature
Sourcepub async fn get_global_fn_inversion(
&self,
) -> Result<GlobalFnInversion, Hidpp20Error>
pub async fn get_global_fn_inversion( &self, ) -> Result<GlobalFnInversion, Hidpp20Error>
Retrieves the global Fn inversion state and its default.
Sourcepub async fn set_global_fn_inversion(
&self,
state: FnInversionState,
) -> Result<GlobalFnInversion, Hidpp20Error>
pub async fn set_global_fn_inversion( &self, state: FnInversionState, ) -> Result<GlobalFnInversion, Hidpp20Error>
Sets the global Fn inversion state and returns the resulting state.
Trait Implementations§
Source§impl Clone for FnInversionWithDefaultStateFeature
impl Clone for FnInversionWithDefaultStateFeature
Source§fn clone(&self) -> FnInversionWithDefaultStateFeature
fn clone(&self) -> FnInversionWithDefaultStateFeature
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 FnInversionWithDefaultStateFeature
impl CreatableFeature for FnInversionWithDefaultStateFeature
Source§const STARTING_VERSION: u8 = 0
const STARTING_VERSION: u8 = 0
The version of the feature the implementation starts to support.
impl Feature for FnInversionWithDefaultStateFeature
Auto Trait Implementations§
impl !RefUnwindSafe for FnInversionWithDefaultStateFeature
impl !UnwindSafe for FnInversionWithDefaultStateFeature
impl Freeze for FnInversionWithDefaultStateFeature
impl Send for FnInversionWithDefaultStateFeature
impl Sync for FnInversionWithDefaultStateFeature
impl Unpin for FnInversionWithDefaultStateFeature
impl UnsafeUnpin for FnInversionWithDefaultStateFeature
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