pub enum ProxyMode {
Forward,
Reverse {
target: Uri,
},
}Expand description
Whether the proxy operates in forward (CONNECT tunneling) or reverse mode.
Variants§
Forward
Forward proxy: clients send CONNECT requests, proxy tunnels and intercepts.
Reverse
Reverse proxy: all requests are rewritten to the given target URI.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ProxyMode
impl RefUnwindSafe for ProxyMode
impl Send for ProxyMode
impl Sync for ProxyMode
impl Unpin for ProxyMode
impl UnsafeUnpin for ProxyMode
impl UnwindSafe for ProxyMode
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