Enum vapjson::spec::validator_set::ValidatorSet[][src]

pub enum ValidatorSet {
    List(Vec<Address>),
    SafeContract(Address),
    Contract(Address),
    Multi(BTreeMap<Uint, ValidatorSet>),
}

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.

A map of starting blocks for each validator set.

Trait Implementations

impl Debug for ValidatorSet[src]

impl<'de> Deserialize<'de> for ValidatorSet[src]

impl PartialEq<ValidatorSet> for ValidatorSet[src]

impl StructuralPartialEq for ValidatorSet[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,