#[non_exhaustive]pub enum PairingFailure {
AttemptTimeout,
MethodNotSupported,
PairingCodeMismatch,
UserCancelled,
ConcurrentAttempt,
Unrecognised(String),
}Expand description
Why a pairing attempt ended without a record.
Each value is the reason field of a pair/abort: the client sends the ones it causes and
reports the ones it receives. The enum is non-exhaustive: a later revision defines reasons this
one does not name, which arrive as Unrecognised.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AttemptTimeout
The attempt did not complete within ClientConfig::pairing_timeout.
MethodNotSupported
The matched key and the requested method are not a permitted combination, or the client does not currently offer the method: it has no store, or the activation names a code method this build does not carry.
PairingCodeMismatch
A key confirmation failed, so the code was wrong or a peer relayed between two handshakes.
UserCancelled
The operator cancelled the pairing, on either side.
ConcurrentAttempt
Another pairing attempt is already in progress with this client.
Unrecognised(String)
A reason this revision does not name, as it arrived on the wire.