pub struct MultiPlatformFeature { /* private fields */ }Expand description
Implements the MultiPlatform / 0x4531 feature.
Implementations§
Source§impl MultiPlatformFeature
impl MultiPlatformFeature
Sourcepub async fn get_feature_infos(&self) -> Result<MultiPlatformInfo, Hidpp20Error>
pub async fn get_feature_infos(&self) -> Result<MultiPlatformInfo, Hidpp20Error>
Retrieves feature capabilities and platform counts.
Sourcepub async fn get_platform_descriptor(
&self,
descriptor_index: u8,
) -> Result<PlatformDescriptor, Hidpp20Error>
pub async fn get_platform_descriptor( &self, descriptor_index: u8, ) -> Result<PlatformDescriptor, Hidpp20Error>
Retrieves a platform descriptor row.
Sourcepub async fn get_host_platform(
&self,
host: HostIndex,
) -> Result<HostPlatform, Hidpp20Error>
pub async fn get_host_platform( &self, host: HostIndex, ) -> Result<HostPlatform, Hidpp20Error>
Retrieves the platform selected for host.
Trait Implementations§
Source§impl Clone for MultiPlatformFeature
impl Clone for MultiPlatformFeature
Source§fn clone(&self) -> MultiPlatformFeature
fn clone(&self) -> MultiPlatformFeature
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 MultiPlatformFeature
impl CreatableFeature for MultiPlatformFeature
Source§const STARTING_VERSION: u8 = 1
const STARTING_VERSION: u8 = 1
The version of the feature the implementation starts to support.
impl Feature for MultiPlatformFeature
Auto Trait Implementations§
impl !RefUnwindSafe for MultiPlatformFeature
impl !UnwindSafe for MultiPlatformFeature
impl Freeze for MultiPlatformFeature
impl Send for MultiPlatformFeature
impl Sync for MultiPlatformFeature
impl Unpin for MultiPlatformFeature
impl UnsafeUnpin for MultiPlatformFeature
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