Enum DirResponse
pub enum DirResponse {
}Expand description
The directory’s response.
Variants§
Registered
A registration for a previously unregistered address succeeded.
Refreshed
A registration under the address’s existing identity refreshed its bundle.
Rejected
A registration was refused: the address is bound to a different identity (trust on first use).
PossessionFailed
A registration was refused: the signature did not prove possession of the submitted identity key.
Found
The looked-up device’s published material.
Deposited(u32)
The pool was stocked; the value is its new depth, so a client can decide whether to send more without a second round trip.
DepositRejected
The presented identity is not the one bound to this address.
NotFound
The looked-up device is not registered.
Rotated
A rotation succeeded; the binding now holds the new key.
A rotation was refused: not authorized by the currently bound key.
Unregistered
A rotation was refused: the address is not registered.
RecoverySet
A recovery key was attached to the address.
NoRecovery
A recover was refused: the address has no recovery key set.
ReservedHandle
A registration was refused: the handle is in the namespace reserved for account provisioning.
Distinct from Rejected on purpose. Rejected means trust on first
use found a different key already bound, which a caller can reason about.
This means the caller may never bind this shape of handle over the
unauthenticated directory path however unclaimed it is, and a developer
who confuses the two will go looking for a phantom existing binding.
Fresh
A witnessed generation is at or ahead of the highest the directory has seen: the presented state is current (decision 0078).
RolledBack
A witnessed generation is below the highest seen: an older state is being presented, which is a rollback. The client keeps its identity and discards its sessions (decision 0078, decision 3).
RateLimited
A new handle registration was refused because this source has made too many recently (registration admission control, RA-1, decision 0079).
Transient — retry later. Unlike Rejected (the handle belongs to
another key) or ReservedHandle (the caller may never bind it), this says
nothing about the handle or the key; it throttles the rate of new
registrations per source. Only new bindings are limited — a re-confirm of a
handle the source already holds is never refused this way. Checked after
possession, so it leaks nothing to a caller who cannot prove the key.
RegistrationClosed
A new raw-handle registration was refused because the deployment runs
AccountsOnly: unauthenticated self-registration is closed, and handles are
obtained through authenticated account provisioning instead (RA-1 layer 2,
decision 0080).
Permanent for this path, unlike RateLimited. Retrying the same
unauthenticated registration cannot succeed; the caller must provision
through an account. A re-confirm of a handle the caller already holds is
not refused this way.
Trait Implementations§
§impl Clone for DirResponse
impl Clone for DirResponse
§fn clone(&self) -> DirResponse
fn clone(&self) -> DirResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more