pub struct ProxyServer { /* private fields */ }Expand description
Proxy server state
Implementations§
Source§impl ProxyServer
impl ProxyServer
Sourcepub fn new(config: ProxyConfig, log_requests: bool, log_responses: bool) -> Self
pub fn new(config: ProxyConfig, log_requests: bool, log_responses: bool) -> Self
Create a new proxy server
Sourcepub fn with_conformance(
config: ProxyConfig,
log_requests: bool,
log_responses: bool,
conformance_tap: Option<ConformanceTap>,
) -> Self
pub fn with_conformance( config: ProxyConfig, log_requests: bool, log_responses: bool, conformance_tap: Option<ConformanceTap>, ) -> Self
Create a proxy with an explicitly configured conformance tap. CLI callers can validate their settings without mutating process environment.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ProxyServer
impl !UnwindSafe for ProxyServer
impl Freeze for ProxyServer
impl Send for ProxyServer
impl Sync for ProxyServer
impl Unpin for ProxyServer
impl UnsafeUnpin for ProxyServer
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