Struct attohttpc::ProxySettings
source · [−]pub struct ProxySettings { /* private fields */ }Expand description
Contains proxy settings and utilities to find which proxy to use for a given URL.
Implementations
sourceimpl ProxySettings
impl ProxySettings
sourcepub fn builder() -> ProxySettingsBuilder
pub fn builder() -> ProxySettingsBuilder
Get a new builder for ProxySettings.
sourcepub fn from_env() -> ProxySettings
pub fn from_env() -> ProxySettings
Get the proxy configuration from the environment using the curl/Unix proxy conventions.
Only HTTP_PROXY, HTTPS_PROXY and NO_PROXY are supported.
NO_PROXY supports wildcard patterns.
Trait Implementations
sourceimpl Clone for ProxySettings
impl Clone for ProxySettings
sourcefn clone(&self) -> ProxySettings
fn clone(&self) -> ProxySettings
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl RefUnwindSafe for ProxySettings
impl Send for ProxySettings
impl Sync for ProxySettings
impl Unpin for ProxySettings
impl UnwindSafe for ProxySettings
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more