pub enum CurlProxy {
Disabled,
FromEnvironment,
Custom(Vec<(String, String)>),
}Expand description
Explicit proxy decision. Routing is never inherited accidentally.
Variants§
Disabled
No proxy is used. The child environment is cleared and
--noproxy "*" is passed as defense-in-depth.
FromEnvironment
Use an explicit snapshot of the current process proxy environment.
Custom(Vec<(String, String)>)
Use explicit KEY=value pairs (e.g. HTTPS_PROXY, NO_PROXY).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CurlProxy
impl RefUnwindSafe for CurlProxy
impl Send for CurlProxy
impl Sync for CurlProxy
impl Unpin for CurlProxy
impl UnsafeUnpin for CurlProxy
impl UnwindSafe for CurlProxy
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