Trait cdrs::cluster::GetConnection [−][src]
pub trait GetConnection<T: CDRSTransport + Send + Sync + 'static, M: ManageConnection<Connection = RefCell<T>, Error = Error>> { fn get_connection(&self) -> Option<PooledConnection<M>>; }
GetConnection
trait provides a unified interface for Session to get a connection
from a load balancer
Required Methods
fn get_connection(&self) -> Option<PooledConnection<M>>
Returns connection from a load balancer.
Implementors
impl<T: CDRSTransport + Send + Sync + 'static, M: ManageConnection<Connection = RefCell<T>, Error = Error> + Sized, LB: LoadBalancingStrategy<Pool<M>>> GetConnection<T, M> for Session<LB>