#[non_exhaustive]pub enum ProxyPolicy {
Environment,
Disabled,
Explicit(ProxyConfig),
}Expand description
Proxy selection. Credentials are never printed by Debug.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Environment
Snapshot HTTP_PROXY / HTTPS_PROXY / ALL_PROXY / NO_PROXY at client build.
Disabled
Direct connect.
Explicit(ProxyConfig)
Explicit proxy URL (and optional credentials).
Trait Implementations§
Source§impl Clone for ProxyPolicy
impl Clone for ProxyPolicy
Source§fn clone(&self) -> ProxyPolicy
fn clone(&self) -> ProxyPolicy
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 ProxyPolicy
impl Debug for ProxyPolicy
Source§impl Default for ProxyPolicy
impl Default for ProxyPolicy
Source§fn default() -> ProxyPolicy
fn default() -> ProxyPolicy
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProxyPolicy
impl RefUnwindSafe for ProxyPolicy
impl Send for ProxyPolicy
impl Sync for ProxyPolicy
impl Unpin for ProxyPolicy
impl UnsafeUnpin for ProxyPolicy
impl UnwindSafe for ProxyPolicy
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