pub struct IncomingConnection { /* private fields */ }
Expand description

Incoming connection. This may not be a valid socks5 connection, so you need to call handshake() to perform the socks5 handshake, then it will be converted to a proper socks5 connection.

Implementations

Perform the socks5 handshake on this connection.

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.