Skip to main content

SystemProxyPacResolver

Trait SystemProxyPacResolver 

pub trait SystemProxyPacResolver: Service<SystemProxyPacRequest, Output = Option<ProxyRoutes>>
where Self::Error: Into<Box<dyn Error + Sync + Send>>,
{ }
Available on crate feature net only.
Expand description

Resolves proxy routes for a request using one system-configured PAC script.

Returning None asks the system layer to try the fixed proxy settings from the same snapshot, if any, and otherwise leave the request unchanged. The blanket implementation accepts any resolver error that converts into BoxError. Implementations may return a concrete service; no allocation or type erasure is required.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§