pub enum OutboundProxyRoute {
TransportDefault,
Direct,
Proxy {
url: String,
no_proxy: Option<String>,
},
}Expand description
Resolved proxy route for a concrete outbound destination.
TransportDefault preserves the underlying transport behavior only when system-proxy support
is disabled. When system resolution is enabled, environment and direct fallbacks are resolved
explicitly so the transport cannot repeat system discovery. Proxy URLs and no-proxy settings
are intentionally redacted from Debug output because they may contain credentials or private
hostnames.
Variants§
TransportDefault
Preserve the underlying transport’s existing proxy behavior.
Direct
Connect directly and bypass transport-level proxy discovery.
Proxy
Connect through the selected proxy URL.
Trait Implementations§
Source§impl Clone for OutboundProxyRoute
impl Clone for OutboundProxyRoute
Source§fn clone(&self) -> OutboundProxyRoute
fn clone(&self) -> OutboundProxyRoute
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OutboundProxyRoute
impl Debug for OutboundProxyRoute
impl Eq for OutboundProxyRoute
Source§impl Hash for OutboundProxyRoute
impl Hash for OutboundProxyRoute
Source§impl PartialEq for OutboundProxyRoute
impl PartialEq for OutboundProxyRoute
impl StructuralPartialEq for OutboundProxyRoute
Auto Trait Implementations§
impl Freeze for OutboundProxyRoute
impl RefUnwindSafe for OutboundProxyRoute
impl Send for OutboundProxyRoute
impl Sync for OutboundProxyRoute
impl Unpin for OutboundProxyRoute
impl UnsafeUnpin for OutboundProxyRoute
impl UnwindSafe for OutboundProxyRoute
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.