[][src]Enum hbbft::queueing_honey_badger::Change

pub enum Change<N: Ord> {
    NodeChange(BTreeMap<N, PublicKey>),
    EncryptionSchedule(EncryptionSchedule),
}

A node change action: adding or removing a node.

Variants

NodeChange(BTreeMap<N, PublicKey>)

Change the set of validators to the one in the provided map. There are no restrictions on the new set of validators. In particular, it can be disjoint with the current set of validators.

EncryptionSchedule(EncryptionSchedule)

Change the threshold encryption schedule. Increase frequency to prevent censorship or decrease frequency for increased throughput.

Trait Implementations

impl<N: Eq + Ord> Eq for Change<N>[src]

impl<N: PartialEq + Ord> PartialEq<Change<N>> for Change<N>[src]

impl<N: Clone + Ord> Clone for Change<N>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<N: Debug + Ord> Debug for Change<N>[src]

impl<N: Hash + Ord> Hash for Change<N>[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<'de, N: Ord> Deserialize<'de> for Change<N> where
    N: Deserialize<'de>, 
[src]

impl<N: Ord> Serialize for Change<N> where
    N: Serialize
[src]

Auto Trait Implementations

impl<N> Send for Change<N> where
    N: Send

impl<N> Sync for Change<N> where
    N: Sync

Blanket Implementations

impl<T> From for T[src]

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

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

type Owned = T

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

impl<T, U> TryInto 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<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]