Trait ConnectionSelector

Source
pub trait ConnectionSelector:
    Send
    + Sync
    + Debug {
    // Required method
    fn try_next(&self, connections: &[Connection]) -> Result<Connection, Error>;
}
Expand description

The strategy selects an address from a given collection.

Required Methods§

Source

fn try_next(&self, connections: &[Connection]) -> Result<Connection, Error>

Try get the next connection.

Implementors§