[][src]Trait elastic::client::sender::static_nodes::Strategy

pub trait Strategy: Send + Sync {
    fn try_next(
        &self,
        nodes: &[NodeAddress]
    ) -> Result<NodeAddress, StrategyError>; }

The strategy selects an address from a given collection.

Required methods

fn try_next(&self, nodes: &[NodeAddress]) -> Result<NodeAddress, StrategyError>

Try get the next address.

Loading content...

Implementors

Loading content...