pub struct ConnectionCache<R, S, T> { /* private fields */ }
Implementations§
source§impl<P, M, C> ConnectionCache<P, M, C>where
P: ConnectionPool<NewConnectionConfig = C>,
M: ConnectionManager<ConnectionPool = P, NewConnectionConfig = C>,
C: NewConnectionConfig,
impl<P, M, C> ConnectionCache<P, M, C>where
P: ConnectionPool<NewConnectionConfig = C>,
M: ConnectionManager<ConnectionPool = P, NewConnectionConfig = C>,
C: NewConnectionConfig,
pub fn new( name: &'static str, connection_manager: M, connection_pool_size: usize ) -> Result<Self, ClientError>
pub fn new_with_config( name: &'static str, connection_pool_size: usize, connection_config: C, connection_manager: M ) -> Self
pub fn get_connection( &self, addr: &SocketAddr ) -> Arc<<<P as ConnectionPool>::BaseClientConnection as BaseClientConnection>::BlockingClientConnection>
pub fn get_nonblocking_connection( &self, addr: &SocketAddr ) -> Arc<<<P as ConnectionPool>::BaseClientConnection as BaseClientConnection>::NonblockingClientConnection>
Auto Trait Implementations§
impl<R, S, T> RefUnwindSafe for ConnectionCache<R, S, T>where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<R, S, T> Send for ConnectionCache<R, S, T>
impl<R, S, T> Sync for ConnectionCache<R, S, T>
impl<R, S, T> Unpin for ConnectionCache<R, S, T>
impl<R, S, T> UnwindSafe for ConnectionCache<R, S, T>where
S: UnwindSafe,
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more