pub struct DualPlatformFeature { /* private fields */ }Expand description
Implements the DualPlatform / 0x4530 feature.
Implementations§
Source§impl DualPlatformFeature
impl DualPlatformFeature
Sourcepub async fn get_platform(&self) -> Result<DualPlatformSelection, Hidpp20Error>
pub async fn get_platform(&self) -> Result<DualPlatformSelection, Hidpp20Error>
Retrieves the current platform setting.
Sourcepub async fn set_platform(
&self,
platform: DualPlatformSelection,
) -> Result<DualPlatformSelection, Hidpp20Error>
pub async fn set_platform( &self, platform: DualPlatformSelection, ) -> Result<DualPlatformSelection, Hidpp20Error>
Sets the platform and returns the device’s echo of the new setting.
This does not trigger a DualPlatformEvent::PlatformChanged event.
Trait Implementations§
Source§impl CreatableFeature for DualPlatformFeature
impl CreatableFeature for DualPlatformFeature
Source§const STARTING_VERSION: u8 = 0
const STARTING_VERSION: u8 = 0
The version of the feature the implementation starts to support.
Source§impl EmittingFeature<DualPlatformEvent> for DualPlatformFeature
impl EmittingFeature<DualPlatformEvent> for DualPlatformFeature
Source§fn listen(&self) -> Receiver<DualPlatformEvent>
fn listen(&self) -> Receiver<DualPlatformEvent>
Creates a receiver that is being notified whenever a new event of type
T is emitted by the feature.impl Feature for DualPlatformFeature
Auto Trait Implementations§
impl !RefUnwindSafe for DualPlatformFeature
impl !UnwindSafe for DualPlatformFeature
impl Freeze for DualPlatformFeature
impl Send for DualPlatformFeature
impl Sync for DualPlatformFeature
impl Unpin for DualPlatformFeature
impl UnsafeUnpin for DualPlatformFeature
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