Enum hyper_proxy::Intercept [−][src]
pub enum Intercept { All, Http, Https, None, Custom(Custom), }
The Intercept enum to filter connections
Variants
All
All incoming connection will go through proxy
Http
Only http connections will go through proxy
Https
Only https connections will go through proxy
None
No connection will go through this proxy
Custom(Custom)
A custom intercept
Methods
impl Intercept
[src]
impl Intercept
Trait Implementations
impl Debug for Intercept
[src]
impl Debug for Intercept
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Intercept
[src]
impl Clone for Intercept
fn clone(&self) -> Intercept
[src]
fn clone(&self) -> Intercept
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]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]
impl<F: Fn(Option<&str>, Option<&str>, Option<u16>) -> bool + Send + Sync + 'static> From<F> for Intercept