Expand description
Framework for helping implement a handshake function
Each kind of handshake should:
-
impl HandshakeImpl, supplying ahandshake_implwhich does the actual work. -
Provide the public
fn handshakefunction, 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 π Handshakes:SocksClientHandshakeorSocksProxyHandshake- HasHandshake
Output π Handshakestructs whose output can be obtained- HasHandshake
State π Handshakestructs 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