[][src]Trait cdrs_temp::cluster::GetConnection

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.

Loading content...

Implementors

impl<T: CDRSTransport + Send + Sync + 'static, M: ManageConnection<Connection = RefCell<T>, Error = Error> + Sized, LB: LoadBalancingStrategy<ConnectionPool<M>> + Sized> GetConnection<T, M> for Session<LB>[src]

Loading content...