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

A Incoming connection. This may not be a valid socks5 connection. You need to call handshake() to perform the socks5 handshake. It will be converted to a proper socks5 connection after the handshake succeeds.

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.