Skip to main content

RoutingStrategy

Trait RoutingStrategy 

Source
pub trait RoutingStrategy: Send + Sync {
    // Required method
    fn rank<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        messages: &'life1 Messages,
        providers: &'life2 [Option<&'life3 ProviderMeta>],
    ) -> Pin<Box<dyn Future<Output = Result<Vec<usize>, StrategyError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
}

Required Methods§

Source

fn rank<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, messages: &'life1 Messages, providers: &'life2 [Option<&'life3 ProviderMeta>], ) -> Pin<Box<dyn Future<Output = Result<Vec<usize>, StrategyError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Implementors§