[−][src]Struct hyper_socks2_mw::SocksConnector
A SOCKS5 proxy information and TCP connector
Fields
proxy_addr: Uri
auth: 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]
fn clone(&self) -> SocksConnector<C>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<C: PartialEq> PartialEq<SocksConnector<C>> for SocksConnector<C>
[src]
fn eq(&self, other: &SocksConnector<C>) -> bool
[src]
fn ne(&self, other: &SocksConnector<C>) -> bool
[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]
C: Service<Uri> + Clone + Send + 'static,
C::Response: AsyncRead + AsyncWrite + Send + Unpin,
C::Error: Into<BoxedError>,
C::Future: Send,
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.
fn poll_ready(&mut self, cx: &mut Context) -> Poll<Result<(), Self::Error>>
[src]
fn call(&mut self, req: Uri) -> Self::Future
[src]
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,
C: RefUnwindSafe,
impl<C> Send for SocksConnector<C> where
C: Send,
C: Send,
impl<C> Sync for SocksConnector<C> where
C: Sync,
C: Sync,
impl<C> Unpin for SocksConnector<C> where
C: Unpin,
C: Unpin,
impl<C> UnwindSafe for SocksConnector<C> where
C: UnwindSafe,
C: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[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]
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,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,