pub struct ValidatorSet<A> {
pub validators: Vec<Validator<A>>,
}Expand description
A validator set represents a group of consensus participants.
The validator set defines who can participate in consensus at a given height. Each validator in the set has a voting power that determines their weight in consensus decisions.
Fields§
§validators: Vec<Validator<A>>The list of validators in the set
Implementations§
Trait Implementations§
Source§impl<A: Clone> Clone for ValidatorSet<A>
impl<A: Clone> Clone for ValidatorSet<A>
Source§fn clone(&self) -> ValidatorSet<A>
fn clone(&self) -> ValidatorSet<A>
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<A: Debug> Debug for ValidatorSet<A>
impl<A: Debug> Debug for ValidatorSet<A>
Source§impl<A: PartialEq> PartialEq for ValidatorSet<A>
impl<A: PartialEq> PartialEq for ValidatorSet<A>
impl<A: Eq> Eq for ValidatorSet<A>
impl<A> StructuralPartialEq for ValidatorSet<A>
Auto Trait Implementations§
impl<A> Freeze for ValidatorSet<A>
impl<A> RefUnwindSafe for ValidatorSet<A>where
A: RefUnwindSafe,
impl<A> Send for ValidatorSet<A>where
A: Send,
impl<A> Sync for ValidatorSet<A>where
A: Sync,
impl<A> Unpin for ValidatorSet<A>where
A: Unpin,
impl<A> UnwindSafe for ValidatorSet<A>where
A: UnwindSafe,
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