Struct hyper_socks::Socks5HttpsConnector [] [src]

pub struct Socks5HttpsConnector<S> {
    // some fields omitted
}

A connector that will produce HttpsStreams proxied over a SOCKS5 server.

Methods

impl<S: SslClient> Socks5HttpsConnector<S>
[src]

fn new<T: ToSocketAddrs>(proxy: T, ssl: S) -> Result<Self>

Creates a new Socks5HttpsConnector which will connect to the specified proxy with the specified userid, and use the provided SSL implementation to encrypt the resulting stream.

Trait Implementations

impl<S: Debug> Debug for Socks5HttpsConnector<S>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<S: SslClient> NetworkConnector for Socks5HttpsConnector<S>
[src]

type Stream = HttpsStream<S::Stream>

Type of Stream to create

fn connect(&self, host: &str, port: u16, scheme: &str) -> Result<Self::Stream>

Connect to a remote address.