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 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 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
impl Eq for ProxyTarget
impl StructuralPartialEq for ProxyTarget
Auto Trait Implementations§
impl !Freeze for ProxyTarget
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
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.