pub struct UpstreamProxy { /* private fields */ }Implementations§
Source§impl UpstreamProxy
impl UpstreamProxy
pub fn parse(raw: &str) -> Result<Self>
pub fn scheme(&self) -> ProxyScheme
pub fn host(&self) -> &str
pub fn port(&self) -> u16
pub fn username(&self) -> Option<&str>
pub fn password(&self) -> Option<&str>
pub fn has_auth(&self) -> bool
pub fn needs_bridge(&self) -> bool
pub fn command_line_url(&self) -> String
Trait Implementations§
Source§impl Clone for UpstreamProxy
impl Clone for UpstreamProxy
Source§fn clone(&self) -> UpstreamProxy
fn clone(&self) -> UpstreamProxy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UpstreamProxy
impl Debug for UpstreamProxy
impl Eq for UpstreamProxy
Source§impl FromStr for UpstreamProxy
impl FromStr for UpstreamProxy
Source§impl PartialEq for UpstreamProxy
impl PartialEq for UpstreamProxy
Source§fn eq(&self, other: &UpstreamProxy) -> bool
fn eq(&self, other: &UpstreamProxy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UpstreamProxy
Auto Trait Implementations§
impl Freeze for UpstreamProxy
impl RefUnwindSafe for UpstreamProxy
impl Send for UpstreamProxy
impl Sync for UpstreamProxy
impl Unpin for UpstreamProxy
impl UnsafeUnpin for UpstreamProxy
impl UnwindSafe for UpstreamProxy
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.