pub enum Kind {
Http,
Socks5,
}Expand description
How to talk to the upstream proxy.
Variants§
Http
http://: CONNECT host:port.
Socks5
socks5:// or socks5h://: both send the host name (address type 3), so the SOCKS
server resolves it, as socks5h means. A name is never resolved here and sent as an
address: that would bypass the upstream’s own name rules.
Trait Implementations§
impl Copy for Kind
impl Eq for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Forget for Kind
impl Freeze for Kind
impl Move for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnsafeUnpin for Kind
impl UnwindSafe for Kind
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