pub trait DMSCHardwareProvider: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn categories(&self) -> Vec<HardwareCategory>;
fn discover<'life0, 'life1, 'async_trait>(
&'life0 self,
platform: &'life1 PlatformInfo,
) -> Pin<Box<dyn Future<Output = DiscoveryResult<Vec<DMSCDevice>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn priority(&self) -> u32;
fn is_available(&self, platform: &PlatformInfo) -> bool;
}Expand description
Trait for hardware discovery providers
Required Methods§
Sourcefn categories(&self) -> Vec<HardwareCategory>
fn categories(&self) -> Vec<HardwareCategory>
Returns the hardware categories this provider handles
Sourcefn discover<'life0, 'life1, 'async_trait>(
&'life0 self,
platform: &'life1 PlatformInfo,
) -> Pin<Box<dyn Future<Output = DiscoveryResult<Vec<DMSCDevice>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn discover<'life0, 'life1, 'async_trait>(
&'life0 self,
platform: &'life1 PlatformInfo,
) -> Pin<Box<dyn Future<Output = DiscoveryResult<Vec<DMSCDevice>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Discovers devices of this type
Sourcefn is_available(&self, platform: &PlatformInfo) -> bool
fn is_available(&self, platform: &PlatformInfo) -> bool
Checks if this provider is available on the current platform