Struct mz_http_proxy::proxy::PROXY_CONFIG
source · [−]pub struct PROXY_CONFIG {
__private_field: (),
}
Fields
__private_field: ()
Methods from Deref<Target = ProxyConfig>
sourcepub fn http_proxy(&self) -> Option<&Uri>
pub fn http_proxy(&self) -> Option<&Uri>
Returns the proxy to use for HTTP requests, if any.
sourcepub fn https_proxy(&self) -> Option<&Uri>
pub fn https_proxy(&self) -> Option<&Uri>
Returns the proxy to use for HTTPS requests, if any.
sourcepub fn all_proxy(&self) -> Option<&Uri>
pub fn all_proxy(&self) -> Option<&Uri>
Returns the proxy to use for HTTP or HTTPS requests, if any.
The proxies returned by ProxyConfig::http_proxy
and
ProxyConfig::https_proxy
take precedence if present.
Trait Implementations
sourceimpl Deref for PROXY_CONFIG
impl Deref for PROXY_CONFIG
type Target = ProxyConfig
type Target = ProxyConfig
The resulting type after dereferencing.
sourcefn deref(&self) -> &ProxyConfig
fn deref(&self) -> &ProxyConfig
Dereferences the value.
impl LazyStatic for PROXY_CONFIG
Auto Trait Implementations
impl RefUnwindSafe for PROXY_CONFIG
impl Send for PROXY_CONFIG
impl Sync for PROXY_CONFIG
impl Unpin for PROXY_CONFIG
impl UnwindSafe for PROXY_CONFIG
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more