Skip to main content

ProxySelector

Trait ProxySelector 

pub trait ProxySelector<Input> {
    // Required method
    fn is_proxied(&self, input: &Input) -> bool;
}
Available on crate feature net only.
Expand description

Decides which side of a MaybeProxiedConnector serves an input.

Required Methods§

fn is_proxied(&self, input: &Input) -> bool

Whether the proxy connector serves input, rather than the direct one.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

§

impl<Input> ProxySelector<Input> for HttpForwardRoute

§

impl<Input> ProxySelector<Input> for HttpTunnelRoute

§

impl<Input> ProxySelector<Input> for ProxiedRoute
where Input: ExtensionsRef,