pub struct Associate<S> { /* private fields */ }
Expand description

Socks5 connection type Associate

AssociateUdpSocket can be used as the associated UDP socket.

Implementations

Reply the associated UDP socket address to the client.

Returns the local address that this stream is bound to.

Returns the remote address that this stream is connected to.

Shutdown the TCP stream.

Wait until the client closes this TCP connection.

Socks5 protocol defines that when the client closes the TCP connection used to send the associate command, the server should release the associated UDP socket.

Returns the local address that this stream is bound to.

Returns the remote address that this stream is connected to.

Shutdown the TCP stream.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.