[][src]Struct hyper_socks2::SocksConnector

pub struct SocksConnector<T> {
    pub proxy_addr: T,
    pub auth: Option<Auth>,
}

A SOCKS5 proxy information and TCP connector

Fields

proxy_addr: Tauth: Option<Auth>

Methods

impl<T> SocksConnector<T>[src]

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

Create a new connector with TLS support

Trait Implementations

impl<T: Clone> Clone for SocksConnector<T>[src]

impl<T: Debug> Debug for SocksConnector<T>[src]

impl<T: Eq> Eq for SocksConnector<T>[src]

impl<T: Hash> Hash for SocksConnector<T>[src]

impl<T: PartialEq> PartialEq<SocksConnector<T>> for SocksConnector<T>[src]

impl<T> Service<Uri> for SocksConnector<T> where
    T: ToSocketAddrs + Clone + Send + Sync + 'static, 
[src]

type Response = TcpStream

Responses given by the service.

type Error = Error

Errors produced by the service.

type Future = SocksFuture

The future response value.

impl<T> StructuralEq for SocksConnector<T>[src]

impl<T> StructuralPartialEq for SocksConnector<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for SocksConnector<T> where
    T: RefUnwindSafe

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

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

impl<T> Unpin for SocksConnector<T> where
    T: Unpin

impl<T> UnwindSafe for SocksConnector<T> where
    T: UnwindSafe

Blanket Implementations

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

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

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

impl<S, T> Connect for S where
    S: Service<Uri, Response = T> + Send + 'static,
    T: AsyncRead + AsyncWrite + Connection + Unpin + Send + 'static,
    <S as Service<Uri>>::Error: Into<Box<dyn Error + 'static + Sync + Send>>,
    <S as Service<Uri>>::Future: Unpin,
    <S as Service<Uri>>::Future: Send
[src]

type _Svc = S

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.