[][src]Struct shadowsocks::relay::tcprelay::client::Socks5Client

pub struct Socks5Client { /* fields omitted */ }

Socks5 proxy client

Implementations

impl Socks5Client[src]

pub async fn connect<A, '_>(
    addr: A,
    proxy: &'_ SocketAddr
) -> Result<Socks5Client> where
    Address: From<A>, 
[src]

Connects to addr via proxy

pub async fn udp_associate<A, '_>(
    addr: A,
    proxy: &'_ SocketAddr
) -> Result<(Socks5Client, Address)> where
    Address: From<A>, 
[src]

UDP Associate addr via proxy

Trait Implementations

impl AsyncRead for Socks5Client[src]

impl AsyncWrite for Socks5Client[src]

impl PinnedDrop for Socks5Client[src]

impl<'pin> Unpin for Socks5Client where
    __Socks5Client<'pin>: Unpin
[src]

impl UnsafeUnpin for Socks5Client[src]

Auto Trait Implementations

Blanket Implementations

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

impl<R> AsyncReadExt for R where
    R: AsyncRead + ?Sized
[src]

impl<W> AsyncWriteExt for W where
    W: AsyncWrite + ?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> Same<T> for T[src]

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,