#[repr(u8)]pub enum ValidatorStatus {
Active = 0,
Inactive = 1,
Jailed = 2,
Unbonding = 3,
}Expand description
Validator status in the staking system
Variants§
Active = 0
Actively participating in consensus
Inactive = 1
Voluntarily stopped validating
Jailed = 2
Penalized and temporarily removed from validator set
Unbonding = 3
Waiting to withdraw stake (unbonding period)
Implementations§
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 moreSource§impl Debug for ValidatorStatus
impl Debug for ValidatorStatus
Source§impl Default for ValidatorStatus
impl Default 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
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 Copy for ValidatorStatus
impl Eq 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