pub struct Socks5Connect { /* private fields */ }Available on crate feature
socks5 only.Expand description
I/O-free SOCKS5 CONNECT handshake coroutine.
Implementations§
Source§impl Socks5Connect
impl Socks5Connect
Sourcepub fn new(
target: Socks5Address,
credentials: Option<Socks5Credentials>,
) -> Self
pub fn new( target: Socks5Address, credentials: Option<Socks5Credentials>, ) -> Self
Creates a coroutine that tunnels to target, authenticating with
credentials if the proxy requests username/password.
Trait Implementations§
Source§impl Debug for Socks5Connect
impl Debug for Socks5Connect
Source§impl ProxyCoroutine for Socks5Connect
impl ProxyCoroutine for Socks5Connect
Source§type Yield = ProxyYield
type Yield = ProxyYield
Available on crate features
http or socks5 only.The intermediate value emitted on every yielded step.
Auto Trait Implementations§
impl Freeze for Socks5Connect
impl RefUnwindSafe for Socks5Connect
impl Send for Socks5Connect
impl Sync for Socks5Connect
impl Unpin for Socks5Connect
impl UnsafeUnpin for Socks5Connect
impl UnwindSafe for Socks5Connect
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