[][src]Struct tendermint::validator::Set

pub struct Set { /* fields omitted */ }

Validator set contains a vector of validators

Implementations

impl Set[src]

pub fn new(vals: Vec<Info>) -> Set[src]

Create a new validator set. vals is mutable so it can be sorted by address.

pub fn validators(&self) -> &Vec<Info>[src]

Get Info of the underlying validators.

impl Set[src]

pub fn validator(&self, val_id: Id) -> Option<Info>[src]

Returns the validator with the given Id if its in the Set.

Trait Implementations

impl Clone for Set[src]

impl Debug for Set[src]

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

impl PartialEq<Set> for Set[src]

impl Serialize for Set[src]

impl StructuralPartialEq for Set[src]

impl ValidatorSet for Set[src]

fn hash(&self) -> Hash[src]

Compute the Merkle root of the validator set

Auto Trait Implementations

impl RefUnwindSafe for Set

impl Send for Set

impl Sync for Set

impl Unpin for Set

impl UnwindSafe for Set

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> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.