pub struct ProxyTcpConnectionPool<C>{ /* private fields */ }Expand description
The connection pool for proxy connection.
Implementations§
Source§impl<C> ProxyTcpConnectionPool<C>
impl<C> ProxyTcpConnectionPool<C>
Sourcepub async fn new(
config: Arc<C>,
username: &str,
user_info: Arc<RwLock<UserInfo>>,
) -> Result<Self, CommonError>
pub async fn new( config: Arc<C>, username: &str, user_info: Arc<RwLock<UserInfo>>, ) -> Result<Self, CommonError>
Create the proxy connection pool
pub async fn take_proxy_connection( &self, ) -> Result<FramedConnection<ProxyTcpConnectionTunnelCtlState>, CommonError>
Auto Trait Implementations§
impl<C> Freeze for ProxyTcpConnectionPool<C>
impl<C> !RefUnwindSafe for ProxyTcpConnectionPool<C>
impl<C> Send for ProxyTcpConnectionPool<C>
impl<C> Sync for ProxyTcpConnectionPool<C>
impl<C> Unpin for ProxyTcpConnectionPool<C>
impl<C> !UnwindSafe for ProxyTcpConnectionPool<C>
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