pub trait ConnectionPool: Debug + DynClone + Sync + Send {
    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

Gets a reference to the next Connection

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Implementors