Type Alias TcpConnectionPool

Source
pub type TcpConnectionPool<A = SocketAddr> = ConnectionPool<TcpStream, A, TcpConnectionCreator, TcpConnectionValidator>;

Aliased Type§

pub struct TcpConnectionPool<A = SocketAddr> { /* private fields */ }

Implementations§

Source§

impl<A> TcpConnectionPool<A>
where A: ToSocketAddrs + Send + Sync + Clone + 'static,

Source

pub fn new_tcp( max_size: Option<usize>, max_idle_time: Option<Duration>, connection_timeout: Option<Duration>, cleanup_config: Option<CleanupConfig>, address: A, ) -> Arc<Self>