pub enum ValidatorKickoutReason {
Slashed,
NotEnoughBlocks {
produced: u64,
expected: u64,
},
NotEnoughChunks {
produced: u64,
expected: u64,
},
Unstaked,
NotEnoughStake {
stake: NearToken,
threshold: NearToken,
},
DidNotGetASeat,
NotEnoughChunkEndorsements {
produced: u64,
expected: u64,
},
ProtocolVersionTooOld {
version: u32,
network_version: u32,
},
}Expand description
Reason a validator was kicked out.
Variants§
Slashed
Slashed (deprecated, unused).
NotEnoughBlocks
Not enough blocks produced.
NotEnoughChunks
Not enough chunks produced.
Unstaked
Validator unstaked.
NotEnoughStake
Not enough stake.
DidNotGetASeat
Did not get a seat.
NotEnoughChunkEndorsements
Not enough chunk endorsements.
ProtocolVersionTooOld
Protocol version too old.
Trait Implementations§
Source§impl Clone for ValidatorKickoutReason
impl Clone for ValidatorKickoutReason
Source§fn clone(&self) -> ValidatorKickoutReason
fn clone(&self) -> ValidatorKickoutReason
Returns a duplicate of the value. Read more
1.0.0 · 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 ValidatorKickoutReason
impl Debug for ValidatorKickoutReason
Source§impl<'de> Deserialize<'de> for ValidatorKickoutReason
impl<'de> Deserialize<'de> for ValidatorKickoutReason
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
Auto Trait Implementations§
impl Freeze for ValidatorKickoutReason
impl RefUnwindSafe for ValidatorKickoutReason
impl Send for ValidatorKickoutReason
impl Sync for ValidatorKickoutReason
impl Unpin for ValidatorKickoutReason
impl UnsafeUnpin for ValidatorKickoutReason
impl UnwindSafe for ValidatorKickoutReason
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