Struct penguin::ProxyTarget
source · pub struct ProxyTarget { /* private fields */ }
Expand description
Defintion of a proxy target consisting of a scheme and authority (≈host).
To create this type you can:
- use the
FromStr
impl:"http://localhost:8000".parse()
, or - use the
From<(Scheme, Authority)>
impl.
The FromStr
allows omitting the scheme (‘http’ or ‘https’) if the host is
"localhost"
or a loopback address and defaults to ‘http’ in that case. For
all other hosts, the scheme has to be specified.
Trait Implementations§
source§impl Clone for ProxyTarget
impl Clone for ProxyTarget
source§fn clone(&self) -> ProxyTarget
fn clone(&self) -> ProxyTarget
Returns a copy 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 ProxyTarget
impl Debug for ProxyTarget
source§impl Display for ProxyTarget
impl Display for ProxyTarget
source§impl FromStr for ProxyTarget
impl FromStr for ProxyTarget
source§impl PartialEq for ProxyTarget
impl PartialEq for ProxyTarget
source§fn eq(&self, other: &ProxyTarget) -> bool
fn eq(&self, other: &ProxyTarget) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ProxyTarget
impl StructuralEq for ProxyTarget
impl StructuralPartialEq for ProxyTarget
Auto Trait Implementations§
impl RefUnwindSafe for ProxyTarget
impl Send for ProxyTarget
impl Sync for ProxyTarget
impl Unpin for ProxyTarget
impl UnwindSafe for ProxyTarget
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.