pub trait DiscoveryStrategyImpl: Send + Sync {
// Required methods
fn discover(&self) -> DeviceResult<Vec<ProviderInfo>>;
fn name(&self) -> &str;
fn is_available(&self) -> bool;
}Expand description
Discovery strategy implementation trait
Required Methods§
Sourcefn discover(&self) -> DeviceResult<Vec<ProviderInfo>>
fn discover(&self) -> DeviceResult<Vec<ProviderInfo>>
Execute discovery
Sourcefn is_available(&self) -> bool
fn is_available(&self) -> bool
Check if strategy is available
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".