Trait cdrs::cluster::GetConnection
source · pub trait GetConnection<T: CDRSTransport + Send + Sync + 'static, M: ManageConnection<Connection = RefCell<T>, Error = Error>> {
fn get_connection(&self) -> Option<PooledConnection<M>>;
}
Expand description
GetConnection
trait provides a unified interface for Session to get a connection
from a load balancer
Required Methods§
sourcefn get_connection(&self) -> Option<PooledConnection<M>>
fn get_connection(&self) -> Option<PooledConnection<M>>
Returns connection from a load balancer.