pub enum AccountPhase {
Running,
Lingering,
Retiring,
Backoff,
Dormant,
Faulted,
}Expand description
Where an account’s lease manager is in the runtime’s lifecycle.
An account is eligible while at least one of its principals has an active, unexpired snapshot; the runtime keeps at most one manager per account (INVARIANTS.md 31).
Variants§
Running
Eligible, with a manager refilling its slot.
Lingering
No longer eligible, but its manager is still running until
InstanceRuntimeConfig::idle_account_linger expires. Becoming
eligible again cancels the linger and returns it to Running.
Retiring
Its manager has been told to stop and is releasing its leases; the runtime has not yet joined it. A replacement waits for that join.
Backoff
Its manager exited while the account was still eligible; a new one
starts after InstanceRuntimeConfig::manager_restart_backoff.
Dormant
No manager: the account is known but not eligible, or its manager was retired.
Faulted
Its manager recorded an accounting-integrity fault, such as the store rejecting a release as an accounting error. Terminal: the runtime shuts down rather than restart it.
Trait Implementations§
Source§impl Clone for AccountPhase
impl Clone for AccountPhase
impl Copy for AccountPhase
Source§impl Debug for AccountPhase
impl Debug for AccountPhase
impl Eq for AccountPhase
Source§impl PartialEq for AccountPhase
impl PartialEq for AccountPhase
impl StructuralPartialEq for AccountPhase
Auto Trait Implementations§
impl Freeze for AccountPhase
impl RefUnwindSafe for AccountPhase
impl Send for AccountPhase
impl Sync for AccountPhase
impl Unpin for AccountPhase
impl UnsafeUnpin for AccountPhase
impl UnwindSafe for AccountPhase
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.