pub struct Socks5HttpsConnector<S> { /* private fields */ }Expand description
A connector that will produce HttpsStreams proxied over a SOCKS5 server.
Implementations§
Source§impl<S: SslClient> Socks5HttpsConnector<S>
impl<S: SslClient> Socks5HttpsConnector<S>
Sourcepub fn new<T: ToSocketAddrs>(proxy: T, ssl: S) -> Result<Self>
pub fn new<T: ToSocketAddrs>(proxy: T, ssl: S) -> Result<Self>
Creates a new Socks5HttpsConnector which will connect to the specified proxy, and use the
provided SSL implementation to encrypt the resulting stream.
Trait Implementations§
Source§impl<S: Debug> Debug for Socks5HttpsConnector<S>
impl<S: Debug> Debug for Socks5HttpsConnector<S>
Auto Trait Implementations§
impl<S> Freeze for Socks5HttpsConnector<S>where
S: Freeze,
impl<S> RefUnwindSafe for Socks5HttpsConnector<S>where
S: RefUnwindSafe,
impl<S> Send for Socks5HttpsConnector<S>where
S: Send,
impl<S> Sync for Socks5HttpsConnector<S>where
S: Sync,
impl<S> Unpin for Socks5HttpsConnector<S>where
S: Unpin,
impl<S> UnwindSafe for Socks5HttpsConnector<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