pub enum Lifecycle<'a> {
Frozen {
account: &'a str,
reason: &'a str,
},
Unfrozen {
account: &'a str,
},
Deleted {
account: &'a str,
},
}Expand description
An account-lifecycle event, so an evaluator’s per-account state does not
outlive the account it belongs to. Not agent-only — any
AccountKind can be frozen, unfrozen or
deleted.
Variants§
Frozen
The account was frozen. Carries why, so state that reflects the freeze reason can be told apart from state that predates it.
Unfrozen
The account was unfrozen by an operator. An evaluator that does not
act on this will re-trip the freeze on the next attempt, because the
state that caused it survives — see plan/policy.md’s “an evaluator
can never unfreeze” note.
Deleted
The account no longer exists.
Trait Implementations§
Source§impl<'a> PartialEq for Lifecycle<'a>
impl<'a> PartialEq for Lifecycle<'a>
impl<'a> Copy for Lifecycle<'a>
impl<'a> Eq for Lifecycle<'a>
impl<'a> StructuralPartialEq for Lifecycle<'a>
Auto Trait Implementations§
impl<'a> Freeze for Lifecycle<'a>
impl<'a> RefUnwindSafe for Lifecycle<'a>
impl<'a> Send for Lifecycle<'a>
impl<'a> Sync for Lifecycle<'a>
impl<'a> Unpin for Lifecycle<'a>
impl<'a> UnsafeUnpin for Lifecycle<'a>
impl<'a> UnwindSafe for Lifecycle<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.