#[non_exhaustive]pub enum PairingRequiredReason {
CredentialMismatch,
}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
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
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.
Trait Implementations§
Source§impl Clone for PairingRequiredReason
impl Clone for PairingRequiredReason
impl Copy for PairingRequiredReason
Source§impl Debug for PairingRequiredReason
impl Debug for PairingRequiredReason
impl Eq for PairingRequiredReason
Source§impl PartialEq for PairingRequiredReason
impl PartialEq for PairingRequiredReason
impl StructuralPartialEq for PairingRequiredReason
Auto Trait Implementations§
impl Forget for PairingRequiredReason
impl Freeze for PairingRequiredReason
impl Move for PairingRequiredReason
impl RefUnwindSafe for PairingRequiredReason
impl Send for PairingRequiredReason
impl Sync for PairingRequiredReason
impl Unpin for PairingRequiredReason
impl UnsafeUnpin for PairingRequiredReason
impl UnwindSafe for PairingRequiredReason
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more