RankingAlgorithmImpl

Trait RankingAlgorithmImpl 

Source
pub trait RankingAlgorithmImpl: Send + Sync {
    // Required methods
    fn rank(
        &self,
        providers: &[ProviderInfo],
        criteria: &[ComparisonCriterion],
    ) -> DeviceResult<Vec<ProviderRanking>>;
    fn name(&self) -> &str;
}
Expand description

Ranking algorithm implementation trait

Required Methods§

Source

fn rank( &self, providers: &[ProviderInfo], criteria: &[ComparisonCriterion], ) -> DeviceResult<Vec<ProviderRanking>>

Rank providers

Source

fn name(&self) -> &str

Get algorithm name

Implementors§