#[non_exhaustive]pub enum PairingRequiredReason {
CredentialMismatch,
UnpairedAccessDisabled,
}Expand description
Why a server needs a pairing this client cannot satisfy with what it holds.
The value is the reason field of Event::PairingRequired. The enum is non-exhaustive: a later
revision may classify another situation the same way.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
CredentialMismatch
The server announced a psk_id this client does not hold, so the handshake fell back to
the Sentinel key.
connection.md calls the resulting handshake the server’s authenticated
credential-mismatch signal: the server still holds a record for this client, and the client
has none it can use for it. The signal alone never removes or replaces a record - not the
server’s and not the client’s - so the host decides whether to offer pairing again. A code
flow or the Pairing PSK flow then replaces the record on both sides.
UnpairedAccessDisabled
The server asked for an unpaired session while this client refuses unpaired access;
Event::PairingRequired reports it before the close.