Enum hyper_proxy::Intercept[][src]

pub enum Intercept {
    All,
    Http,
    Https,
    None,
    Custom(Custom),
}

The Intercept enum to filter connections

Variants

All incoming connection will go through proxy

Only http connections will go through proxy

Only https connections will go through proxy

No connection will go through this proxy

A custom intercept

Methods

impl Intercept
[src]

A function to check if given Uri is proxied

Trait Implementations

impl Debug for Intercept
[src]

Formats the value using the given formatter. Read more

impl Clone for Intercept
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<F: Fn(Option<&str>, Option<&str>, Option<u16>) -> bool + Send + Sync + 'static> From<F> for Intercept
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Intercept

impl Sync for Intercept