Skip to main content

SenderQueueableOutput

Trait SenderQueueableOutput 

Source
pub trait SenderQueueableOutput<N, E>
where N: NodeIdT,
{ // Required methods fn participant_change(&self) -> Option<BTreeSet<N>>; fn output_epoch(&self) -> E; }
Expand description

An output type compatible with the sender queue.

Required Methods§

Source

fn participant_change(&self) -> Option<BTreeSet<N>>

Returns the set of participants in the next epoch. New participants should be added to the set of peers for tracking their epochs. Old participants - ones that appear only among current participants - should be scheduled for removal from the set of peers in an orderly manner making sure that all messages those participants are entitled to are delivered to them.

The common case of no change in the set of participants is denoted by None.

Source

fn output_epoch(&self) -> E

The epoch in which the output was produced.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<C, N> SenderQueueableOutput<N, (u64, u64)> for fedimint_hbbft::dynamic_honey_badger::Batch<C, N>
where C: Contribution, N: NodeIdT,

Source§

impl<C, N> SenderQueueableOutput<N, u64> for fedimint_hbbft::honey_badger::Batch<C, N>
where C: Contribution, N: NodeIdT,