Struct hyper_socks2::SocksConnector
source · pub struct SocksConnector<C> {
pub proxy_addr: Uri,
pub auth: Option<Auth>,
pub connector: C,
}Expand description
A SOCKS5 proxy information and TCP connector
Fields§
§proxy_addr: Uri§auth: Option<Auth>§connector: CImplementations§
source§impl<C> SocksConnector<C>
impl<C> SocksConnector<C>
sourcepub fn with_tls(self) -> Result<HttpsConnector<Self>, TlsError>
pub fn with_tls(self) -> Result<HttpsConnector<Self>, TlsError>
Create a new connector with TLS support
Trait Implementations§
source§impl<C: Clone> Clone for SocksConnector<C>
impl<C: Clone> Clone for SocksConnector<C>
source§fn clone(&self) -> SocksConnector<C>
fn clone(&self) -> SocksConnector<C>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<C: Debug> Debug for SocksConnector<C>
impl<C: Debug> Debug for SocksConnector<C>
source§impl<C: Hash> Hash for SocksConnector<C>
impl<C: Hash> Hash for SocksConnector<C>
source§impl<C: PartialEq> PartialEq<SocksConnector<C>> for SocksConnector<C>
impl<C: PartialEq> PartialEq<SocksConnector<C>> for SocksConnector<C>
source§fn eq(&self, other: &SocksConnector<C>) -> bool
fn eq(&self, other: &SocksConnector<C>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§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,
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,
§type Future = Pin<Box<dyn Future<Output = Result<<C as Service<Uri>>::Response, Error>> + Send + 'static, Global>>
type Future = Pin<Box<dyn Future<Output = Result<<C as Service<Uri>>::Response, Error>> + Send + 'static, Global>>
The future response value.