Enum hyper_proxy::Intercept [−][src]
pub enum Intercept {
All,
Http,
Https,
None,
Custom(Custom),
}The Intercept enum to filter connections
Variants
AllAll incoming connection will go through proxy
HttpOnly http connections will go through proxy
HttpsOnly https connections will go through proxy
NoneNo connection will go through this proxy
Custom(Custom)A custom intercept
Methods
impl Intercept[src]
impl InterceptTrait Implementations
impl Debug for Intercept[src]
impl Debug for Interceptfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Intercept[src]
impl Clone for Interceptfn clone(&self) -> Intercept[src]
fn clone(&self) -> InterceptReturns 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