pub struct ValidatorInfo {
pub validator_list_hash_short: u32,
pub catchain_seqno: u32,
pub nx_cc_updated: bool,
}Expand description
Brief validator info.
Fields§
§validator_list_hash_short: u32Last 4 bytes of the hash of the validator list.
catchain_seqno: u32Seqno of the catchain session.
nx_cc_updated: boolWhether the value of catchain seqno has been incremented and will it also be incremented in the next block.
Trait Implementations§
Source§impl Clone for ValidatorInfo
impl Clone for ValidatorInfo
Source§fn clone(&self) -> ValidatorInfo
fn clone(&self) -> ValidatorInfo
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 ValidatorInfo
impl Debug for ValidatorInfo
Source§impl<'tlb> Load<'tlb> for ValidatorInfo
impl<'tlb> Load<'tlb> for ValidatorInfo
Source§impl PartialEq for ValidatorInfo
impl PartialEq for ValidatorInfo
Source§impl Store for ValidatorInfo
impl Store for ValidatorInfo
Source§fn store_into(
&self,
__builder: &mut CellBuilder,
__context: &dyn CellContext,
) -> Result<(), Error>
fn store_into( &self, __builder: &mut CellBuilder, __context: &dyn CellContext, ) -> Result<(), Error>
Tries to store itself into the cell builder.
impl Copy for ValidatorInfo
impl Eq for ValidatorInfo
impl StructuralPartialEq for ValidatorInfo
Auto Trait Implementations§
impl Freeze for ValidatorInfo
impl RefUnwindSafe for ValidatorInfo
impl Send for ValidatorInfo
impl Sync for ValidatorInfo
impl Unpin for ValidatorInfo
impl UnwindSafe for ValidatorInfo
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,
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
Compares
self to key and returns true if they are equal.