pub enum ProxyType {
Http,
Https,
Socks5,
}Expand description
Proxy protocol family.
Distinguishes the wire format used to reach the proxy server:
plain HTTP CONNECT for HTTP proxies, TLS-wrapped HTTP CONNECT for
HTTPS proxies, and SOCKS5 handshake for SOCKS5 proxies.
Variants§
Http
HTTP proxy (plain TCP, CONNECT method).
Https
HTTPS proxy (TLS-wrapped CONNECT method).
Socks5
SOCKS5 proxy.
Trait Implementations§
impl Copy for ProxyType
impl Eq for ProxyType
impl StructuralPartialEq for ProxyType
Auto Trait Implementations§
impl Freeze for ProxyType
impl RefUnwindSafe for ProxyType
impl Send for ProxyType
impl Sync for ProxyType
impl Unpin for ProxyType
impl UnsafeUnpin for ProxyType
impl UnwindSafe for ProxyType
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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