pub enum ValidatorStatus {
Active,
Inactive,
Jailed,
Unbonding,
}Expand description
Validator operational status.
This mirrors the lifecycle in [tenzro_token::ValidatorRegistryStatus]
but is the local view consensus uses to decide who participates in the
current round. The token-side registry is the source of truth across
epoch boundaries; consensus only ever sees Active / Inactive /
Jailed / Unbonding states reflected from the registry’s transition
plan.
Variants§
Active
Active and participating in consensus
Inactive
Temporarily inactive
Jailed
Jailed due to misbehavior
Unbonding
Unbonding (pending removal)
Trait Implementations§
Source§impl Clone for ValidatorStatus
impl Clone for ValidatorStatus
Source§fn clone(&self) -> ValidatorStatus
fn clone(&self) -> ValidatorStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ValidatorStatus
Source§impl Debug for ValidatorStatus
impl Debug for ValidatorStatus
Source§impl<'de> Deserialize<'de> for ValidatorStatus
impl<'de> Deserialize<'de> for ValidatorStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ValidatorStatus
Source§impl PartialEq for ValidatorStatus
impl PartialEq for ValidatorStatus
Source§fn eq(&self, other: &ValidatorStatus) -> bool
fn eq(&self, other: &ValidatorStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ValidatorStatus
impl Serialize for ValidatorStatus
impl StructuralPartialEq for ValidatorStatus
Auto Trait Implementations§
impl Freeze for ValidatorStatus
impl RefUnwindSafe for ValidatorStatus
impl Send for ValidatorStatus
impl Sync for ValidatorStatus
impl Unpin for ValidatorStatus
impl UnsafeUnpin for ValidatorStatus
impl UnwindSafe for ValidatorStatus
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