[−][src]Struct tokio_socks::tcp::SocksConnector
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]
S: Stream<Item = Result<SocketAddr>> + Unpin,
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]
&'_ mut self,
__arg1: T
) -> Result<Socks5Stream<T>>
Auto Trait Implementations
impl<'a, 't, S> RefUnwindSafe for SocksConnector<'a, 't, S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<'a, 't, S> Send for SocksConnector<'a, 't, S> where
S: Send,
S: Send,
impl<'a, 't, S> Sync for SocksConnector<'a, 't, S> where
S: Sync,
S: Sync,
impl<'a, 't, S> Unpin for SocksConnector<'a, 't, S> where
S: Unpin,
S: Unpin,
impl<'a, 't, S> UnwindSafe for SocksConnector<'a, 't, S> where
S: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,