pub enum AssociationStep {
Established,
HlsReplyRequired,
Rejected {
result: AssociationResult,
diagnostic: Diagnostic,
},
Exception(ExceptionResponse),
}Expand description
What the client must do next in the association handshake.
Variants§
Established
The association is open.
HlsReplyRequired
High level security requires a reply to the server’s challenge; call
ClientSession::hls_reply_request.
Rejected
The server refused, with its reason.
Fields
result: AssociationResultAccepted, permanently rejected or transiently rejected.
diagnostic: DiagnosticWhy.
Exception(ExceptionResponse)
The server answered the AARQ with an exception rather than an AARE, so the association was never attempted.
The case worth acting on is invocation-counter-error: it carries the counter
the server expects next, and a client whose stored value went stale — a restart
from a backup, most often — can move to it with
ClientSession::set_invocation_counter and associate again. The exception is
unprotected and anyone can forge one, so the value is reported rather than
applied: moving a counter is the caller’s decision because moving it backwards
burns the key.