pub struct TlsProxy { /* private fields */ }Expand description
A running TLS proxy that accepts and processes intercepted connections.
Implementations§
Source§impl TlsProxy
impl TlsProxy
Sourcepub fn start(
pending: PendingTlsProxy,
cert_cache: Arc<CertCache>,
bypass: BypassMatcher,
client_config: Arc<ClientConfig>,
handler: Arc<dyn InterceptHandler>,
redirect_guard: RedirectGuard,
) -> Self
pub fn start( pending: PendingTlsProxy, cert_cache: Arc<CertCache>, bypass: BypassMatcher, client_config: Arc<ClientConfig>, handler: Arc<dyn InterceptHandler>, redirect_guard: RedirectGuard, ) -> Self
Starts the TLS proxy from a pending (pre-bound) listener.
Takes ownership of the RedirectGuard so that redirect rules are
cleaned up when the proxy is dropped.
Sourcepub fn start_noop(
pending: PendingTlsProxy,
cert_cache: Arc<CertCache>,
bypass: BypassMatcher,
client_config: Arc<ClientConfig>,
redirect_guard: RedirectGuard,
) -> Self
pub fn start_noop( pending: PendingTlsProxy, cert_cache: Arc<CertCache>, bypass: BypassMatcher, client_config: Arc<ClientConfig>, redirect_guard: RedirectGuard, ) -> Self
Starts a TLS proxy with a no-op intercept handler.
Auto Trait Implementations§
impl Freeze for TlsProxy
impl RefUnwindSafe for TlsProxy
impl Send for TlsProxy
impl Sync for TlsProxy
impl Unpin for TlsProxy
impl UnsafeUnpin for TlsProxy
impl UnwindSafe for TlsProxy
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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