pub enum SetStatusError {
UnknownAccount,
AccountClosed,
NotProvisioned,
OperatorHold,
Storage(StoreError),
}Expand description
Refusals from an account-status transition (GL-51).
Deliberately not an AllocateError: that enum’s NAMES/COUNT/index
are the width of LeaseCounters’ per-reason tally, and a status refusal
can never come out of acquire, so widening it would export a slot that
is permanently zero in every deployment. CreateAccountError is the
existing precedent for this shape — domain refusals plus Storage.
Variants§
UnknownAccount
No such account. Never a silent no-op, and the same answer whichever status was asked for.
AccountClosed
AccountStatus::Closed is terminal: an account enters it from any
status and leaves it never. The refusal changes nothing — not the
ledger, not one snapshot, not one generation.
NotProvisioned
A provisioner addressed an account an operator created. Only
AdminStore::activate_provisioned returns it (#39).
OperatorHold
An operator set the account’s current status, and a provisioner may
not undo it. Only AdminStore::activate_provisioned returns it, so an
abuse suspension cannot be reversed by retrying signup (#39).
Storage(StoreError)
A backend failure unrelated to domain rules; see StoreError.
Trait Implementations§
Source§impl Clone for SetStatusError
impl Clone for SetStatusError
Source§impl Debug for SetStatusError
impl Debug for SetStatusError
Source§impl Display for SetStatusError
impl Display for SetStatusError
impl Eq for SetStatusError
Source§impl Error for SetStatusError
impl Error for SetStatusError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()