pub struct HttpProxyConfig { /* private fields */ }Expand description
Configuration for an HTTP proxy.
Implementations§
Source§impl HttpProxyConfig
impl HttpProxyConfig
Sourcepub fn builder() -> Builder<HostAndPortStage>
pub fn builder() -> Builder<HostAndPortStage>
Returns a new builder.
Source§impl HttpProxyConfig
impl HttpProxyConfig
Sourcepub fn host_and_port(&self) -> &HostAndPort
pub fn host_and_port(&self) -> &HostAndPort
The host and port of the proxy server.
Sourcepub fn credentials(&self) -> Option<&BasicCredentials>
pub fn credentials(&self) -> Option<&BasicCredentials>
The credentials used to authenticate with the proxy.
Trait Implementations§
Source§impl Clone for HttpProxyConfig
impl Clone for HttpProxyConfig
Source§fn clone(&self) -> HttpProxyConfig
fn clone(&self) -> HttpProxyConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HttpProxyConfig
impl Debug for HttpProxyConfig
Source§impl<'de> Deserialize<'de> for HttpProxyConfig
impl<'de> Deserialize<'de> for HttpProxyConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<HttpProxyConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<HttpProxyConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for HttpProxyConfig
impl Hash for HttpProxyConfig
Source§impl PartialEq for HttpProxyConfig
impl PartialEq for HttpProxyConfig
impl Eq for HttpProxyConfig
impl StructuralPartialEq for HttpProxyConfig
Auto Trait Implementations§
impl Freeze for HttpProxyConfig
impl RefUnwindSafe for HttpProxyConfig
impl Send for HttpProxyConfig
impl Sync for HttpProxyConfig
impl Unpin for HttpProxyConfig
impl UnwindSafe for HttpProxyConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.