[][src]Struct proxy_cfg::ProxyConfig

pub struct ProxyConfig {
    pub proxies: HashMap<String, String>,
    pub whitelist: HashSet<String>,
    pub exclude_simple: bool,
    // some fields omitted
}

Fields

proxies: HashMap<String, String>whitelist: HashSet<String>exclude_simple: bool

Methods

impl ProxyConfig[src]

pub fn use_proxy_for_address(&self, address: &str) -> bool[src]

pub fn get_proxy_for_url(&self, url: &Url) -> Option<String>[src]

Trait Implementations

impl Clone for ProxyConfig[src]

impl Debug for ProxyConfig[src]

impl Default for ProxyConfig[src]

impl Eq for ProxyConfig[src]

impl PartialEq<ProxyConfig> for ProxyConfig[src]

impl StructuralEq for ProxyConfig[src]

impl StructuralPartialEq for ProxyConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.