Available on crate features
proxy-handshake
or client-handshake
only.Expand description
Framework for helping implement a handshake
function
Each kind of handshake should:
-
impl HandshakeImpl
, supplying ahandshake_impl
which does the actual work. -
Provide the public
fn handshake
function, in terms of the provided methodHandshakeImpl::run_handshake
. -
Derive
Handshake
.
Macros§
- derive_
deftly_ 🔒template_ Handshake - Macro-generated components for a handshake outer state structure
Structs§
- Buffer
- An input buffer containing maybe some socks data
- Finished
- A completed handshake
- Precise
Reads - Marker indicating precise reads
- Recv
Step - Next step - details for reading from the peer
Enums§
- Impl
Next 🔒Step - The internal (implementation-side) representation of the next step to take
- Next
Step - Next step to take in the handshake
Traits§
- Handshake
- Handshake
- Handshake
Impl 🔒 Handshake
s:SocksClientHandshake
orSocksProxyHandshake
- HasHandshake
Output 🔒 Handshake
structs whose output can be obtained- HasHandshake
State 🔒 Handshake
structs that have a state that can beFailed
- Read
Precision - Markers indicating whether we’re allowing read-ahead,
- Read
Precision Sealed - Sealed, and adjustment of
RecvStep::buf