pub struct Socks4HttpsConnector<S> { /* private fields */ }
Expand description
A connector that will produce HttpsStreams proxied over a SOCKS4 server.
Implementations§
Source§impl<S: SslClient> Socks4HttpsConnector<S>
impl<S: SslClient> Socks4HttpsConnector<S>
Sourcepub fn new<T: ToSocketAddrs>(proxy: T, userid: &str, ssl: S) -> Result<Self>
pub fn new<T: ToSocketAddrs>(proxy: T, userid: &str, ssl: S) -> Result<Self>
Creates a new Socks4HttpsConnector
which will connect to the specified
proxy with the specified userid, and use the provided SSL implementation
to encrypt the resulting stream.
Trait Implementations§
Source§impl<S: Debug> Debug for Socks4HttpsConnector<S>
impl<S: Debug> Debug for Socks4HttpsConnector<S>
Auto Trait Implementations§
impl<S> Freeze for Socks4HttpsConnector<S>where
S: Freeze,
impl<S> RefUnwindSafe for Socks4HttpsConnector<S>where
S: RefUnwindSafe,
impl<S> Send for Socks4HttpsConnector<S>where
S: Send,
impl<S> Sync for Socks4HttpsConnector<S>where
S: Sync,
impl<S> Unpin for Socks4HttpsConnector<S>where
S: Unpin,
impl<S> UnwindSafe for Socks4HttpsConnector<S>where
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more