pub struct ProxyDiagnostic {
pub endpoint: String,
pub from_environment: bool,
pub endpoint_exempt_from_class_check: bool,
}Expand description
What a client knows about the proxy it uses, for diagnostics. Credentials are never part of it.
Fields§
§endpoint: Stringscheme://host:port of the proxy, without credentials, path or query.
from_environment: boolTrue when the proxy was taken from the environment or from the operating system’s
settings (ProxyMode::System), false for ProxyMode::Explicit.
endpoint_exempt_from_class_check: boolThe proxy endpoint is exempt from the destination class check because the caller or
the environment configured it. Destinations are still checked: literals by class,
names by the name rules, and NO_PROXY hosts fully.
Trait Implementations§
Source§impl Clone for ProxyDiagnostic
impl Clone for ProxyDiagnostic
Source§impl Debug for ProxyDiagnostic
impl Debug for ProxyDiagnostic
impl Eq for ProxyDiagnostic
Source§impl PartialEq for ProxyDiagnostic
impl PartialEq for ProxyDiagnostic
impl StructuralPartialEq for ProxyDiagnostic
Auto Trait Implementations§
impl Freeze for ProxyDiagnostic
impl RefUnwindSafe for ProxyDiagnostic
impl Send for ProxyDiagnostic
impl Sync for ProxyDiagnostic
impl Unpin for ProxyDiagnostic
impl UnsafeUnpin for ProxyDiagnostic
impl UnwindSafe for ProxyDiagnostic
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