[−][src]Struct hyper_socks2::SocksConnector
A SOCKS5 proxy information and TCP connector
Fields
proxy_addr: T
auth: 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]
fn clone(&self) -> SocksConnector<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
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<T: PartialEq> PartialEq<SocksConnector<T>> for SocksConnector<T>
[src]
fn eq(&self, other: &SocksConnector<T>) -> bool
[src]
fn ne(&self, other: &SocksConnector<T>) -> bool
[src]
impl<T> Service<Uri> for SocksConnector<T> where
T: ToSocketAddrs + Clone + Send + Sync + 'static,
[src]
T: ToSocketAddrs + Clone + Send + Sync + 'static,
type Response = TcpStream
Responses given by the service.
type Error = Error
Errors produced by the service.
type Future = SocksFuture
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<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,
T: RefUnwindSafe,
impl<T> Send for SocksConnector<T> where
T: Send,
T: Send,
impl<T> Sync for SocksConnector<T> where
T: Sync,
T: Sync,
impl<T> Unpin for SocksConnector<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for SocksConnector<T> where
T: UnwindSafe,
T: 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 + Sync + Send>>,
<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 + Sync + Send>>,
<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>,