[][src]Struct fbas_analyzer::QuorumSet

pub struct QuorumSet {
    pub threshold: usize,
    pub validators: Vec<NodeId>,
    pub inner_quorum_sets: Vec<QuorumSet>,
}

Fields

threshold: usizevalidators: Vec<NodeId>inner_quorum_sets: Vec<QuorumSet>

Implementations

impl QuorumSet[src]

pub fn new() -> Self[src]

pub fn contained_nodes(&self) -> NodeIdSet[src]

pub fn contains_duplicates(&self) -> bool[src]

Whether some nodes appear more than once

pub fn is_quorum_slice(&self, node_set: &NodeIdSet) -> bool[src]

pub fn to_quorum_slices(&self) -> Vec<NodeIdSet>[src]

Each valid quorum slice for this quorum set is a superset (i.e., equal to or a proper superset of) of at least one of the sets returned by this function.

Trait Implementations

impl Clone for QuorumSet[src]

impl Debug for QuorumSet[src]

impl Default for QuorumSet[src]

impl Eq for QuorumSet[src]

impl Hash for QuorumSet[src]

impl Ord for QuorumSet[src]

impl PartialEq<QuorumSet> for QuorumSet[src]

impl PartialOrd<QuorumSet> for QuorumSet[src]

impl Serialize for QuorumSet[src]

impl StructuralEq for QuorumSet[src]

impl StructuralPartialEq for QuorumSet[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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[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.

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