pub enum Intercept {
All,
Http,
Https,
None,
Custom(Custom),
}
Expand description
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
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Intercept
impl !RefUnwindSafe for Intercept
impl Send for Intercept
impl Sync for Intercept
impl Unpin for Intercept
impl !UnwindSafe for Intercept
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)