Enum ethjson::spec::validator_set::ValidatorSet
source · [−]pub enum ValidatorSet {
List(Vec<Address>),
SafeContract(Address),
Contract(Address),
Multi(BTreeMap<Uint, ValidatorSet>),
}
Expand description
Different ways of specifying validators.
Variants
List(Vec<Address>)
A simple list of authorities.
SafeContract(Address)
Address of a contract that indicates the list of authorities.
Contract(Address)
Address of a contract that indicates the list of authorities and enables reporting of theor misbehaviour using transactions.
Multi(BTreeMap<Uint, ValidatorSet>)
A map of starting blocks for each validator set.
Trait Implementations
sourceimpl Debug for ValidatorSet
impl Debug for ValidatorSet
sourceimpl<'de> Deserialize<'de> for ValidatorSet
impl<'de> Deserialize<'de> for ValidatorSet
sourcefn 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
sourceimpl PartialEq<ValidatorSet> for ValidatorSet
impl PartialEq<ValidatorSet> for ValidatorSet
sourcefn eq(&self, other: &ValidatorSet) -> bool
fn eq(&self, other: &ValidatorSet) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ValidatorSet) -> bool
fn ne(&self, other: &ValidatorSet) -> bool
This method tests for !=
.
impl StructuralPartialEq for ValidatorSet
Auto Trait Implementations
impl RefUnwindSafe for ValidatorSet
impl Send for ValidatorSet
impl Sync for ValidatorSet
impl Unpin for ValidatorSet
impl UnwindSafe for ValidatorSet
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more