pub struct Socks5ProxyBuilder { /* private fields */ }
Implementations§
Source§impl Socks5ProxyBuilder
impl Socks5ProxyBuilder
Sourcepub fn auth(self, proxy_auth: Option<Socks5Auth>) -> Self
pub fn auth(self, proxy_auth: Option<Socks5Auth>) -> Self
Configure a username + password authentication for the proxy.
If None
, no authentication is performed.
Default is None
.
Sourcepub async fn tls_setup(self) -> Result<TlsBuilder, Error>
pub async fn tls_setup(self) -> Result<TlsBuilder, Error>
Build connection and proceed with tls setup.
Auto Trait Implementations§
impl !Freeze for Socks5ProxyBuilder
impl !RefUnwindSafe for Socks5ProxyBuilder
impl Send for Socks5ProxyBuilder
impl Sync for Socks5ProxyBuilder
impl Unpin for Socks5ProxyBuilder
impl !UnwindSafe for Socks5ProxyBuilder
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