Struct penguin::ProxyTarget [−][src]
pub struct ProxyTarget { /* fields omitted */ }
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more