[][src]Enum hyper_socks2::Proxy

pub enum Proxy<T: ToSocketAddrs> {
    Socks4 {
        addrs: T,
        user_id: String,
    },
    Socks5 {
        addrs: T,
        auth: Option<Auth>,
    },
}

A SOCKS4/5 proxy information and TCP connector

Variants

Socks4

Fields of Socks4

addrs: Tuser_id: String
Socks5

Fields of Socks5

addrs: Tauth: Option<Auth>

Methods

impl<T> Proxy<T> where
    T: ToSocketAddrs
[src]

pub fn with_tls(self) -> Result<HttpsConnector<Self>, Error>[src]

Create a new connector with TLS support

Trait Implementations

impl<T: Eq + ToSocketAddrs> Eq for Proxy<T>[src]

impl<T: Clone + ToSocketAddrs> Clone for Proxy<T>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: PartialEq + ToSocketAddrs> PartialEq<Proxy<T>> for Proxy<T>[src]

impl<T: Debug + ToSocketAddrs> Debug for Proxy<T>[src]

impl<T> Connect for Proxy<T> where
    T: ToSocketAddrs + Send + Sync
[src]

type Transport = TcpStream

The connected IO Stream.

type Error = Error

An error occured when trying to connect.

type Future = Connection

A Future that will resolve to the connected Transport.

Auto Trait Implementations

impl<T> Send for Proxy<T> where
    T: Send

impl<T> Sync for Proxy<T> where
    T: Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T