[−][src]Trait kuska_handshake::State
The State
trait is used to implement the typestate pattern for the Handshake
.
The state machine is as follows:
Client:
SendClientHello
-send_client_hello()
-> `RecvServerHelloRecvServerHello
-recv_server_hello()
-> `SendClientAuthSendClientAuth
-send_client_auth()
-> `RecvServerAcceptRecvServerAccept
-recv_server_accept()
-> `Complete
Server:
RecvClientHello
-recv_client_hello()
->SendServerHello
SendServerHello
-send_server_hello()
->RecvClientAuth
RecvClientAuth
-recv_client_auth()
->SendServerAccept
SendServerAccept
-send_server_accept()
->Complete