pub struct PooledConnector<C, K, T> { /* private fields */ }
Expand description
PooledConnector is a connector with a connection pool. It is designed for non-multiplex transport, like http1.
Implementations§
Source§impl<C, K, T> PooledConnector<C, K, T>
impl<C, K, T> PooledConnector<C, K, T>
pub const fn new(transport_connector: C, pool: ConnectionPool<K, T>) -> Self
pub fn into_parts(self) -> (C, ConnectionPool<K, T>)
pub fn transport_connector(&self) -> &C
pub fn pool(&self) -> &ConnectionPool<K, T>
Source§impl<C, K: 'static, T: 'static> PooledConnector<C, K, T>
impl<C, K: 'static, T: 'static> PooledConnector<C, K, T>
pub fn new_with_default_pool(transport_connector: C) -> Self
Trait Implementations§
Source§impl<C: Clone, K, T> Clone for PooledConnector<C, K, T>
impl<C: Clone, K, T> Clone for PooledConnector<C, K, T>
Source§impl<C, K: Key, T: Poolable> Connector<K> for PooledConnector<C, K, T>where
C: Connector<K, Connection = T>,
impl<C, K: Key, T: Poolable> Connector<K> for PooledConnector<C, K, T>where
C: Connector<K, Connection = T>,
Auto Trait Implementations§
impl<C, K, T> Freeze for PooledConnector<C, K, T>where
C: Freeze,
impl<C, K, T> !RefUnwindSafe for PooledConnector<C, K, T>
impl<C, K, T> !Send for PooledConnector<C, K, T>
impl<C, K, T> !Sync for PooledConnector<C, K, T>
impl<C, K, T> Unpin for PooledConnector<C, K, T>where
C: Unpin,
impl<C, K, T> !UnwindSafe for PooledConnector<C, K, T>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)