[][src]Struct tokio_socks::tcp::SocksConnector

pub struct SocksConnector<'a, 't, S> { /* fields omitted */ }

A Future which resolves to a socket to the target server through proxy.

Implementations

impl<'a, 't, S> SocksConnector<'a, 't, S> where
    S: Stream<Item = Result<SocketAddr>> + Unpin
[src]

pub async fn execute<'_>(&'_ mut self) -> Result<Socks5Stream<TcpStream>>[src]

Connect to the proxy server, authenticate and issue the SOCKS command

pub async fn execute_with_socket<'_, T: AsyncRead + AsyncWrite + Unpin>(
    &'_ mut self,
    __arg1: T
) -> Result<Socks5Stream<T>>
[src]

Auto Trait Implementations

impl<'a, 't, S> RefUnwindSafe for SocksConnector<'a, 't, S> where
    S: RefUnwindSafe

impl<'a, 't, S> Send for SocksConnector<'a, 't, S> where
    S: Send

impl<'a, 't, S> Sync for SocksConnector<'a, 't, S> where
    S: Sync

impl<'a, 't, S> Unpin for SocksConnector<'a, 't, S> where
    S: Unpin

impl<'a, 't, S> UnwindSafe for SocksConnector<'a, 't, S> where
    S: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.