[][src]Struct hyper_socks2_mw::SocksConnector

pub struct SocksConnector<C> {
    pub proxy_addr: Uri,
    pub auth: Option<Auth>,
    pub connector: C,
}

A SOCKS5 proxy information and TCP connector

Fields

proxy_addr: Uriauth: Option<Auth>connector: C

Implementations

impl<C> SocksConnector<C>[src]

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

Create a new connector with TLS support

Trait Implementations

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

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

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

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

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

impl<C> Service<Uri> for SocksConnector<C> where
    C: Service<Uri> + Clone + Send + 'static,
    C::Response: AsyncRead + AsyncWrite + Send + Unpin,
    C::Error: Into<BoxedError>,
    C::Future: Send
[src]

type Response = C::Response

Responses given by the service.

type Error = Error

Errors produced by the service.

type Future = SocksFuture<C::Response>

The future response value.

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

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

Auto Trait Implementations

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

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

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

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

impl<C> UnwindSafe for SocksConnector<C> where
    C: 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 + Send + Sync>>,
    <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.