pub enum ProxyDecision {
Disabled,
FromEnvironment,
Custom(Vec<(String, String)>),
}Expand description
Explicit proxy decision. Routing is never inherited accidentally.
Variants§
Disabled
No proxy is used, even if environment variables are set.
FromEnvironment
Use an explicit snapshot of the process environment.
Custom(Vec<(String, String)>)
Use explicit KEY=value pairs (e.g. HTTPS_PROXY, NO_PROXY).
Trait Implementations§
Source§impl Clone for ProxyDecision
impl Clone for ProxyDecision
Source§impl Debug for ProxyDecision
impl Debug for ProxyDecision
Auto Trait Implementations§
impl Freeze for ProxyDecision
impl RefUnwindSafe for ProxyDecision
impl Send for ProxyDecision
impl Sync for ProxyDecision
impl Unpin for ProxyDecision
impl UnsafeUnpin for ProxyDecision
impl UnwindSafe for ProxyDecision
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