pub enum PairingRefused {
InviteInvalid,
InviteExpired,
InviteExhausted,
WrongInviteKind,
RateLimited {
retry_after_secs: u64,
},
AlreadyPaired,
ServerIdChanged,
SameServerId,
KeyRefused,
KeyHeld,
Unknown,
}Expand description
Why no pair was made, or a peer was turned away.
Variants§
InviteInvalid
No invite has this code, or it was revoked: counted as a wrong guess.
InviteExpired
InviteExhausted
Every use it had is used.
WrongInviteKind
The code is a live invite’s of another kind (an account’s, a portable user’s).
RateLimited
Too many wrong codes, or too many strangers asking: try again in
retry_after_secs.
AlreadyPaired
This endpoint, or this server id, is paired already.
ServerIdChanged
This endpoint is paired under another server id: refused every
time, and the connection is closed with
crate::close::SERVER_ID_CHANGED.
SameServerId
The hello’s server id is the dialled server’s own: a server never pairs with itself, or with one that copied its id.
KeyRefused
A new key for a paired server id that is not held: its admin rejected it within the day, or as many new keys as are held for that server wait already.
KeyHeld
The other server holds this one’s new key until its admin
confirms it: what a server tells its own admin (PairServer),
never sent on the ALPN, where the standing says it.
Unknown
A reason this build does not know.