[−][src]Struct hbbft::honey_badger::Batch
A batch of contributions the algorithm has output.
Fields
epoch: u64
This batch's epoch number. Each epoch produces exactly one batch.
contributions: BTreeMap<N, C>
The set of agreed contributions, by the contributor's node ID.
Methods
impl<C, N: NodeIdT> Batch<C, N>
[src]
pub fn iter<'a>(&'a self) -> impl Iterator<Item = <&'a C as IntoIterator>::Item> where
&'a C: IntoIterator,
[src]
&'a C: IntoIterator,
Returns an iterator over references to all transactions included in the batch.
pub fn into_tx_iter(self) -> impl Iterator<Item = <C as IntoIterator>::Item> where
C: IntoIterator,
[src]
C: IntoIterator,
Returns an iterator over all transactions included in the batch. Consumes the batch.
pub fn len<T>(&self) -> usize where
C: AsRef<[T]>,
[src]
C: AsRef<[T]>,
Returns the number of transactions in the batch (without detecting duplicates).
pub fn is_empty<T>(&self) -> bool where
C: AsRef<[T]>,
[src]
C: AsRef<[T]>,
Returns true
if the batch contains no transactions.
Trait Implementations
impl<C, N> SenderQueueableOutput<N, u64> for Batch<C, N> where
C: Contribution,
N: NodeIdT,
[src]
C: Contribution,
N: NodeIdT,
fn participant_change(&self) -> Option<BTreeSet<N>>
[src]
fn output_epoch(&self) -> u64
[src]
impl<C: Clone, N: Clone> Clone for Batch<C, N>
[src]
fn clone(&self) -> Batch<C, N>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<C: Debug, N: Debug> Debug for Batch<C, N>
[src]
Auto Trait Implementations
impl<C, N> Send for Batch<C, N> where
C: Send,
N: Send,
C: Send,
N: Send,
impl<C, N> Sync for Batch<C, N> where
C: Sync,
N: Sync,
C: Sync,
N: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,