Struct attohttpc::ProxySettings [−][src]
Contains proxy settings and utilities to find which proxy to use for a given URL.
Implementations
impl ProxySettings
[src]
pub fn builder() -> ProxySettingsBuilder
[src]
Get a new builder for ProxySettings.
pub fn from_env() -> ProxySettings
[src]
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.
pub fn for_url(&self, url: &Url) -> Option<&Url>
[src]
Get the proxy URL to use for the given URL.
None is returned if there is no proxy configured for the scheme or if the hostname matches a pattern in the no proxy list.
Trait Implementations
impl Clone for ProxySettings
[src]
fn clone(&self) -> ProxySettings
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ProxySettings
[src]
Auto Trait Implementations
impl RefUnwindSafe for ProxySettings
[src]
impl Send for ProxySettings
[src]
impl Sync for ProxySettings
[src]
impl Unpin for ProxySettings
[src]
impl UnwindSafe for ProxySettings
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CloneAny for T where
T: Clone + Any,
T: Clone + Any,
pub fn clone_any(&self) -> Box<dyn CloneAny + 'static, Global>
pub fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send, Global> where
T: Send,
T: Send,
pub fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync, Global> where
T: Sync,
T: Sync,
pub fn clone_any_send_sync(
&self
) -> Box<dyn CloneAny + 'static + Send + Sync, Global> where
T: Send + Sync,
&self
) -> Box<dyn CloneAny + 'static + Send + Sync, Global> where
T: Send + Sync,
impl<T> DebugAny for T where
T: Any + Debug,
T: Any + Debug,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,
impl<T> UnsafeAny for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,