pub struct UpstreamProxyOptions {
pub mode: ProxyMode,
pub no_proxy: Option<String>,
}Expand description
Client-local proxy selection and bypass policy.
Fields§
§mode: ProxyModeEndpoint selection. Defaults to ProxyMode::Automatic.
no_proxy: Option<String>Bypass list in NO_PROXY syntax: comma-separated domains/subdomains,
IP literals/CIDRs, or * for every host, including IP literals.
Matching does not resolve DNS names to test CIDRs. Port-qualified rules
and native-only syntax such as <local> are not supported here.
NoneinheritsNO_PROXY/no_proxy. In automatic mode, an empty environment list permits native exclusions when a native proxy wins. Explicit mode never reads native exclusions.Some(list)replaces both environment and native exclusions.Some(String::new())disables all bypass rules.Some("*".into())selects direct access for every host.
Direct mode ignores this field. Automatic mode retains CGI protection regardless of the override. Configuration never changes the environment.
Trait Implementations§
Source§impl Clone for ProxyOptions
impl Clone for ProxyOptions
Source§fn clone(&self) -> ProxyOptions
fn clone(&self) -> ProxyOptions
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 ProxyOptions
impl Debug for ProxyOptions
Source§impl Default for ProxyOptions
impl Default for ProxyOptions
Source§fn default() -> ProxyOptions
fn default() -> ProxyOptions
Returns the “default value” for a type. Read more
impl Eq for ProxyOptions
Source§impl PartialEq for ProxyOptions
impl PartialEq for ProxyOptions
impl StructuralPartialEq for ProxyOptions
Auto Trait Implementations§
impl Forget for ProxyOptions
impl Freeze for ProxyOptions
impl Move for ProxyOptions
impl RefUnwindSafe for ProxyOptions
impl Send for ProxyOptions
impl Sync for ProxyOptions
impl Unpin for ProxyOptions
impl UnsafeUnpin for ProxyOptions
impl UnwindSafe for ProxyOptions
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more