pub struct ProxyManager<B>where
B: ClientBouncer,{ /* private fields */ }Implementations§
Source§impl<B> ProxyManager<B>where
B: ClientBouncer,
<B::Tls as MakeTlsConnect<Socket>>::TlsConnect: Send,
<B::Tls as MakeTlsConnect<Socket>>::Stream: Send,
<<B::Tls as MakeTlsConnect<Socket>>::TlsConnect as TlsConnect<Socket>>::Future: Send,
Handles proxying connections from clients to backends.
impl<B> ProxyManager<B>where
B: ClientBouncer,
<B::Tls as MakeTlsConnect<Socket>>::TlsConnect: Send,
<B::Tls as MakeTlsConnect<Socket>>::Stream: Send,
<<B::Tls as MakeTlsConnect<Socket>>::TlsConnect as TlsConnect<Socket>>::Future: Send,
Handles proxying connections from clients to backends.
pub fn new(bouncer: B) -> Self
Sourcepub async fn handle_conn(self, client_stream: TcpStream)
pub async fn handle_conn(self, client_stream: TcpStream)
Handles a TCP connection from a client.
Trait Implementations§
Auto Trait Implementations§
impl<B> !RefUnwindSafe for ProxyManager<B>
impl<B> !UnwindSafe for ProxyManager<B>
impl<B> Freeze for ProxyManager<B>
impl<B> Send for ProxyManager<B>
impl<B> Sync for ProxyManager<B>
impl<B> Unpin for ProxyManager<B>
impl<B> UnsafeUnpin for ProxyManager<B>where
B: UnsafeUnpin,
Arc<RwLock<HashMap<CancelKey, CancelHandle<<B as ClientBouncer>::Tls>>>>: UnsafeUnpin,
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