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§
Sourcefn try_next(&self, connections: &[Connection]) -> Result<Connection, Error>
fn try_next(&self, connections: &[Connection]) -> Result<Connection, Error>
Try get the next connection.