[−][src]Enum hyper_socks2::Proxy
A SOCKS4/5 proxy information and TCP connector
Variants
Socks4
Fields of Socks4
addrs: T
user_id: String
Socks5
Fields of Socks5
Methods
impl<T> Proxy<T> where
T: ToSocketAddrs,
[src]
T: ToSocketAddrs,
pub fn with_tls(self) -> Result<HttpsConnector<Self>, Error>
[src]
Create a new connector with TLS support
Trait Implementations
impl<T: Eq + ToSocketAddrs> Eq for Proxy<T>
[src]
impl<T: PartialEq + ToSocketAddrs> PartialEq<Proxy<T>> for Proxy<T>
[src]
impl<T: Clone + ToSocketAddrs> Clone for Proxy<T>
[src]
fn clone(&self) -> Proxy<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: Debug + ToSocketAddrs> Debug for Proxy<T>
[src]
impl<T> Connect for Proxy<T> where
T: ToSocketAddrs + Send + Sync,
[src]
T: ToSocketAddrs + Send + Sync,
type Transport = TcpStream
The connected IO Stream.
type Error = Error
An error occured when trying to connect.
type Future = Connection
A Future that will resolve to the connected Transport.
fn connect(&self, dst: Destination) -> Self::Future
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<Q, K> Equivalent for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,