pub struct ProxyOptions {
pub mode: ProxyMode,
pub no_proxy: Option<String>,
}Available on crate feature
proxy only.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§impl Debug for ProxyOptions
impl Debug for ProxyOptions
Source§impl Default for ProxyOptions
impl Default for ProxyOptions
impl Eq for ProxyOptions
Source§impl PartialEq for ProxyOptions
impl PartialEq for ProxyOptions
impl StructuralPartialEq for ProxyOptions
Auto Trait Implementations§
impl Freeze 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.