[][src]Trait hbbft::sender_queue::SenderQueueableMessage

pub trait SenderQueueableMessage {
    type Epoch: EpochT;
    fn is_premature(&self, them: Self::Epoch, max_future_epochs: u64) -> bool;
fn is_obsolete(&self, them: Self::Epoch) -> bool;
fn first_epoch(&self) -> Self::Epoch; fn is_accepted(&self, them: Self::Epoch, max_future_epochs: u64) -> bool { ... } }

A message type that is suitable for use with a sender queue.

Associated Types

type Epoch: EpochT

The epoch type of the wrapped algorithm.

Loading content...

Required methods

fn is_premature(&self, them: Self::Epoch, max_future_epochs: u64) -> bool

Whether the message needs to be deferred.

fn is_obsolete(&self, them: Self::Epoch) -> bool

Whether the epoch of the message is behind them.

fn first_epoch(&self) -> Self::Epoch

Returns the earliest epoch in which this message can be handled.

Loading content...

Provided methods

fn is_accepted(&self, them: Self::Epoch, max_future_epochs: u64) -> bool

Whether the message is neither obsolete nor premature.

Loading content...

Implementors

impl<N> SenderQueueableMessage for Message<N>[src]

type Epoch = u64

fn is_accepted(&self, them: Self::Epoch, max_future_epochs: u64) -> bool[src]

impl<N: Ord> SenderQueueableMessage for DhbMessage<N>[src]

type Epoch = (u64, u64)

fn is_accepted(&self, them: Self::Epoch, max_future_epochs: u64) -> bool[src]

Loading content...