pub trait ConnectionPool:
Debug
+ DynClone
+ Sync
+ Send {
// Required method
fn next(&self) -> &Connection;
}
Expand description
A pool of Connections, used to make API calls to Elasticsearch.
A ConnectionPool manages the connections, with different implementations determining how to get the next Connection. The simplest type of ConnectionPool is SingleNodeConnectionPool, which manages only a single connection, but other implementations may manage connections more dynamically at runtime, based upon the response to API calls.
Required Methods§
Sourcefn next(&self) -> &Connection
fn next(&self) -> &Connection
Gets a reference to the next Connection