[][src]Trait cdrs::cluster::GetConnection

pub trait GetConnection<T: CDRSTransport + Send + Sync + 'static, M: ManageConnection<Connection = Mutex<T>, Error = Error>> {
#[must_use]    fn get_connection<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Option<Arc<ConnectionPool<M>>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

GetConnection trait provides a unified interface for Session to get a connection from a load balancer

Required methods

#[must_use]fn get_connection<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = Option<Arc<ConnectionPool<M>>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

Returns connection from a load balancer.

Loading content...

Implementors

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

Loading content...